Batch delete WINDOWS.OLD file under Win7

  

The purpose of this tutorial is to use batch processing to delete the WINDOWS.OLD folder under Win7.

WINDOWS.OLD This folder is the backup directory of the previous operating system when you install and upgrade Windows 7, and may occupy several or even dozens of G space of your hard disk!

WINDOWS.OLD folder can not be deleted directly, Win7's own backup is definitely a bit special, if you delete directly, oh, it will cause Windows 7 Explorer (resource manager) to crash. So how do you easily delete the WINDOWS.OLD folder?

Open Notepad and paste the following content into it

rd/S/Q c:\\WINDOWS.OLD

or

rd/S /Q $WINDOWS.OLD

Ok, save it as a batch file, for example, delold.bat. After saving, right click on the delold.bat file and select “Run as administrator. ”, when prompted to confirm the deleted target WINDOWS.OLD folder, confirm the input y and press the Enter key to be OK.

Of course, if you don't need batch processing, you can also directly execute ——

1. Find the cmd.exe file (in “start –>program–> Attachment">;) Right click to select “Run as administrator>;

2. Command line input

rd/S/Q c:\\WINDOWS.OLD or rd/S/Q $WINDOWS.OLD

When prompted to confirm the deleted target WINDOWS.OLD folder, confirm the input y and press Enter.

In short, look at your personal habits, and make batch processing can be easily passed to friends.

Copyright © Windows knowledge All Rights Reserved