Windows - Clear RAM without rebooting your PC


How to clear the RAM without rebooting your PC?


  • Open "Notepad" or any text editor.
  • Enter the following command:
    • FreeMem = Space(24000000) 
  • In this example, you will release 24MB of RAM.
  • Save this file with the ".VBS" format.
  • Put this file in the "WINDOWS" directory and create a desktop shortcut.
  • Double clicking on this shortcut, will clear 24 MB of RAM.

Thanks to jdespe for this tip.
Published by aakai1056. Latest update on June 6, 2013 at 06:21 AM by deri58.
This document, titled "Windows - Clear RAM without rebooting your PC," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (
PowerShell - Shutting down a program normally
Windows - Uninstall Xmarks