Skip to content

Commit

Permalink
cache dwm and explorer
Browse files Browse the repository at this point in the history
  • Loading branch information
Gorkido authored and Gorkido committed Nov 8, 2022
1 parent cec1494 commit b669730
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CS-Files/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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();
}
}
Expand Down

0 comments on commit b669730

Please sign in to comment.