How to create a Batch file to clean your computer

By | May 29, 2015

Let’s create a Batch file to clean your computer

This tip can be used on any version of Windows from Windows XP through Windows 10.

Back in the days of yore — i.e. DOS, batch files were used by geeks to all sorts of things – including some bad things too. Today Batch files are still as powerful as ever — and very easy to make. All you need to make one is Notepad, a little code, and a little patience.

So open Notepad right now. Press and hold down the Windows Key — then press the R key. In the command line type Notepad and press Enter. Now that Notepad is open copy and paste the following (or if you’re a masochist you can type it all in) line:

c:\windows\system32\cleanmgr.exe /dc

Now, and this is VERY important! Make sure you select “All files” in Notepad’s Save as type dialog. If you leave it set as “Text Documents”- your batch file won’t work, because text files cannot execute. (See the helpful image below.)

Cloudeight InfoAve

Now that you have Save as type “All files” chosen, save your file as cleanup.bat . Saving it to your desktop is highly convenient because you can drag it from the desktop to your start menu or wherever you want it. The next time you want to clean up the junk files from your computer, just click on the Batch file you just created. Amaze your friends! Even your enemies!


Introducing Emsisoft 10

Buy Emsisoft with a one-year license or buy a one-year renewal and get 2 free licenses for your friends or family.

During this special promotion, order an Emsisoft one-year license or renewal from this page, and you’ll get two free licenses you can give to your friends or family. What a great way to introduce them to the best anti-malware and anti-virus anywhere!

If you’re already using Emsisoft, you can purchase a renewal license and hold on to it until you need it. The renewal key is good for one full year of Emsisoft protection from the date you first use it.

Here are the rules for the two free keys to give to your friends or family:

— The two free licenses must be used within two months from purchase or they will expire. These extra licenses CANNOT be used to renew, merge or extend other keys.

— This offer available for a limited time only.

— Free licenses must be used by July 15, 2015

Get your two free Emsisoft licenses right now and make someone happy!

2 thoughts on “How to create a Batch file to clean your computer

  1. Ashara Powell

    What about windows 7 system 64? Will the system 32 work?

    Reply
  2. A_Hippy_Hillbillie

    EB & TC, cool tip! Thank you both. Food for thought, why not create a shortcut or just pin the Windows Disk Cleaner to one’s personal preference!

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *