Using A Batch File to Clear Memory
Summary: Learn How to clear memory on Windows using a batch file. Optimize your computers performance by removing cache and temp files with this step-by-step guide.
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Instructions
Creating and Using a Batch file.
This Memory cleaner batch file automatically clears all the cache and temp files.
- Open Notepad and then paste the following code into it.
%windir%\system32\rundll32.exe advapi32.dll,ProcessIdleTasks
- Save the notepad file as cleaner.bat. Save the file on your desktop and now run the bat file to clear Memory.
Warning: Editing system files can damage your computer. Copy the code correctly as it is.
Affected Products
Alienware, Inspiron, Legacy Desktop Models, OptiPlex, Vostro, XPS, G Series, G Series, Alienware, Inspiron, Latitude, Vostro, XPS, Legacy Laptop Models, Fixed Workstations, Mobile WorkstationsArticle Properties
Article Number: 000135233
Article Type: How To
Last Modified: 17 Jul 2025
Version: 7
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.