From b66973037ef9b39567d25bbe5585a09a9c644cb4 Mon Sep 17 00:00:00 2001 From: Gorkido Date: Tue, 8 Nov 2022 23:37:56 +0300 Subject: [PATCH] cache dwm and explorer --- CS-Files/Program.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CS-Files/Program.cs b/CS-Files/Program.cs index b08e549..c828b24 100644 --- a/CS-Files/Program.cs +++ b/CS-Files/Program.cs @@ -154,6 +154,11 @@ private static void Main() } Thread.Sleep(500); + // Clean memory + CleanMemory CleanMem = new CleanMemory(); + CleanMem.ClearCache(); + Thread.Sleep(500); + // Kill explorer RunCmd("/c taskkill /f /im explorer.exe"); Thread.Sleep(500); @@ -168,11 +173,6 @@ private static void Main() // Sometimes cmd fails to kill itself, so we kill it. RunCmd("/c taskkill /f /t /im cmd.exe"); - // Clean memory - CleanMemory CleanMem = new CleanMemory(); - CleanMem.ClearCache(); - Thread.Sleep(500); - Application.Exit(); } }