![]() ![]() Note: This cleanup script will also clear windows prefetch directory. You can execute this file in place of running Disk Cleanup, or, to have this program run unattended, run the Add Scheduled Task Wizard in the Control Panel and create a scheduled task using the clean.bat file you just created. Change the first line to read:Ĭ:\windows\system32\cleanmgr.exe /dc /sagerun: 1 Right-click on the clean.bat file and click edit. Check the items you wish to have cleaned up, then click OK. This will run the Disk Cleanup program in a special mode which asks what items you will want cleaned when Disk Cleanup performs an unattended cleanup. batįor this tip's purpose, we will call it clean.batĮxecute the file. Save the file, changing the extension from. This tip assumes you have Windows XP installed in c:\windows.Ĭreate a new text file and place the following contents inside:Ĭ:\windows\system32\cleanmgr.exe /dc /sageset: 1 This tip will show you how to create an unattended disk cleanup which will also empty your prefetch folder. ![]()
0 Comments
Leave a Reply. |