Tuesday, November 18, 2008

trick to defrag mutliple volumes in windows vista without using any third party software





By default windows vista provides a defragmentor which can defrag one drive at a time which ofcourse takes a lot of time.
Here is a trick to defrag mutliple drives in ur system at once.
To do this we hav to create a batch file to defragment all drives one after other.
the disk defrag utility can be invoked from the comand line with the following syntax:

Windows Disk Defragmenter
Copyright (c) 2001 Microsoft Corp. and Executive Software International, Inc.
Usage:

defrag
[-a] [-f] [-v] [-?]

volume drive letter or mount point (d: or d:volmountpoint)
-a Analyze only
-f Force defragmentation even if free space is low
-v Verbose output
-? Display this help text

first of all we create a bat file by name tuneall.bat
and place it anywhere you like, as long as you'll remember where it is. If you want to run it from the command line, you could place it in the \windows directory so that it will be available in the system path.

For each hard drive, add a line to the batch file. For instance, if we want to defragment drives C: , D: , and F: we will add these three lines:

defrag c: -f defrag d: -f defrag f: -f

To run the defrag, just either double-click on the batch file or start it from the command

0 comments:

 

Computers made easy 4all Copyright © 2009 Gadget Blog is Designed by Ipietoon Sponsored by Online Business Journal