Windows - Clear RAM without rebooting your PC

October 2016


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.

Related :

This document entitled « Windows - Clear RAM without rebooting your PC » from CCM ( is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.