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(); } }