Maksazone.com  

Go Back   Maksazone.com > Knowledge > Computer Affairs

Notices

Computer Affairs Share ur tips and tricks of computer and computer related questions and answers.

Sponsored Links
Reply
 
LinkBack Thread Tools Display Modes
Old 16th October 2007, 12:16 PM   #1 (permalink)
Super Moderator
 
shadenights's Avatar
 
Join Date: Oct 2007
Location: me
Posts: 5,543
shadenights has a reputation beyond reputeshadenights has a reputation beyond reputeshadenights has a reputation beyond reputeshadenights has a reputation beyond reputeshadenights has a reputation beyond reputeshadenights has a reputation beyond reputeshadenights has a reputation beyond reputeshadenights has a reputation beyond reputeshadenights has a reputation beyond reputeshadenights has a reputation beyond reputeshadenights has a reputation beyond repute
Default A better dis clean up..

This tip will show you how to create an unattended disk cleanup which will also empty your prefetch folder. This tip assumes you have Windows XP installed in c:\windows.

Step 1.
Create a new text file and place the following contents inside:

c:\windows\system32\cleanmgr.exe /dc /sageset: 1
c:
cd \
cd c:\windows\prefetch
del *.* /q

Step 2.
Save the file, changing the extension from .txt to .bat
For this tip's purpose, we will call it clean.bat

Step 3.
Execute the file. 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. Check the items you wish to have cleaned up, then click OK.

Step 4.
Right-click on the clean.bat file and click edit. Change the first line to read:

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

Step 5.
Save the file. 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.

Note: This cleanup script will also clear windows prefetch directory. Often this directory can become cluttered with old appication and a cleaning would free up disk space but it will result in a one time performance decrease and windows has to rebuild the cache with active software afterwards.
__________________
shadenights is offline   Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Step by step procedure to install XP..Do it urself. 3 shadenights Computer Affairs 0 16th October 2007 11:58 AM
Clean out the prefetch folder shadenights Computer Affairs 0 15th October 2007 06:21 PM
First Aid basics Bunny Health is Wealth 2 13th October 2007 08:27 PM
Best Tips NOORIE Tips & Advice 2 9th July 2007 05:27 AM
Water Vs Coca Cola, Bunny Tips & Advice 2 23rd April 2007 10:23 PM


All times are GMT +6.5. The time now is 04:43 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81