Bienvenido! - Willkommen! - Welcome!

Bitácora Técnica de Tux&Cía., Santa Cruz de la Sierra, BO
Bitácora Central: Tux&Cía.
Bitácora de Información Avanzada: Tux&Cía.-Información
May the source be with you!

Monday, August 4, 2008

Automate Defrag, Disk Cleanup...

By: Richard (August 7, 2007)
Clear the Temporary Internet Files using the Windows XP Disk Cleanup utility
Defragmenting a hard drive, combined with clean up of Temporary Files keep your computer running fast. It'd be nice to configure your computer to carry out these tasks automatically without you lifting a finger.

  • Click Start, Run
  • Type the following: cleanmgr.exe /d C: /sageset:50

    • C: is the drive containing your Windows installation.

    • :50 is a label that identifies this particular config. It can be any integer value from 0 to 65535.
      • Look at it in terms of having the ability to configure cleanmgr.exe many different ways, and you can create a Task in Task Scheduler to run each variant at a different time of your choice. If you don't understand what I just said, just read on.
    • The command cleanmgr.exe /d C: /sageset:50 opens a Disk Cleanup Settings window. Check whatever you want to clean up.
  • Click OK.
    • Your config is now saved in the registry, and identified by the label :50.
    • To run it, just do Start, Run, and type
      C:\WINDOWS\system32\cleanmgr.exe /sagerun:50
      • Let's say for cleanmgr.exe /d C: /sageset:50, you only put checkmarks in "Temporary Internet Files" and "Temporary Setup Files". You can create another config, e.g. cleanmgr.exe /d C: /sageset:51, and check other options, e.g. "Downloaded Program Files". To run it, you would issue the command C:\WINDOWS\system32\cleanmgr.exe /sagerun:51.
      • cleanmgr.exe /d C: /sagerun:50 will clean "Temporary Internet Files" and "Temporary Setup Files".
      • cleanmgr.exe /d C: /sagerun:51 will clean only "Downloaded Program Files".

How to automate Disk Cleanup

  • Start, All Programs
  • Accessories, System Tools
  • Scheduled Tasks
  • Add Scheduled Task
  • Next
  • Disk Cleanup, Next
  • Type a name for the task, e.g. "Disk Cleanup".
  • Select how often to run
  • Next
  • Configure Start time
  • Check day(s)
  • Next
  • Enter password, and re-type password.
  • Next
  • Check Open advanced properties
  • Finish
  • Under Run:, enter one of the above configs, e.g. "C:\WINDOWS\system32\cleanmgr.exe /sagerun:50"
  • Enter password again if asked.
How to automate Defrag

  • Create a Scheduled Task as above.
  • Under Run:, enter C:\WINDOWS\system32\defrag.exe C:.
    • C: is the drive to defrag.

How to automate System reboot

  • Create a Scheduled Task as above.
  • Under Run:, enter C:\WINDOWS\system32\shutdown.exe -r -t 01.
You can combine all three above to your advantage. E.g.
  • Create a scheduled task to clean up temp files at 12:30 am.
  • Then another scheduled task to defrag at 3:00 am.
  • Finally, a scheduled task to reboot the machine at 8:00 am.

Doing this will give
you a fresh machine to work with each morning. Although a daily defrag
may be overkill. Personally, I clean up temp files daily, then reboot.
I do Defrag once a week.

Detect and repair disk errors
In addition to running Disk Cleanup and Disk Defragmenter to optimize the performance of your computer, you can check the integrity of the files stored on your hard disk by running the Error Checking utility.
As you use your hard drive, it can develop bad sectors. Bad sectors slow down hard disk performance and sometimes make data writing (such as file saving) difficult, or even impossible. The Error Checking utility scans the hard drive for bad sectors, and scans for file system errors to see whether certain files or folders are misplaced.
If you use your computer daily, you should run this utility once a week to help prevent data loss.

To run the Error Checking utility:

  1. Click Start, and then click My Computer.
  2. In the My Computer window, right-click the hard disk you want to search for bad sectors, and then click Properties.
  3. In the Properties dialog box, click the Tools tab.
  4. Click the Check Now button.
  5. In the Check Disk dialog box, select the Scan for and attempt recovery of bad sectors check box, and then click Start.
  6. If bad sectors are found, choose to fix them.
Tip: Only select the "Automatically fix file system errors" check box if you think that your disk contains bad sectors.

Speed Up Processing Time

  1. Turning off the fancy Windows XP graphics will noticeably increase the speed of your computer.
  2. Go to Start, (Settings), Control Panel, System. NOTE: You may need to 'Switch to Classic Mode' to see the System applet.
  3. Go to the Advanced tab. Click the Settings button under Performance.
  4. Select the 'Adjust for best performance' radio button, then Apply, and OK.
  5. The graphics aren't as flashy, but your computer will run a lot faster.
Make Windows load faster

Windows by default is configured to wait 30 seconds before bootup. You can cut this wait time down for a faster boot as follows:

  1. Click Start, then Run.
  2. Type in 'msconfig' and press enter.
  3. Click on the BOOT.INI tab at the top.
  4. Over to the right there will be a box labeled Timeout with 30 in it. Change the 30 to a 3.
Copyright © 2000-2008 Richie's Tutorials All rights reserved.

THANKS, Richard!!!

No comments: