Site Statistics
 
Threads: 4,004
Posts: 17,497
Members: 2,984
Users Online: 14
Newest Member: delon23


Go Back   PC101 > Computer Related Forums > Hardware

Hardware Thinking about adding some new hardware and looking for opinions? Having problems with your current hardware? This is the place share!


Reply
 
LinkBack Thread Tools Display Modes
Old 03-28-2008, 05:42 PM   #1
Head Mistress
 
Lyte's Avatar
 
Join Date: Oct 2005
Location: Good ol' U.S. of A
Posts: 3,370
Rep Power: 6 Lyte is on a distinguished road
Send a message via MSN to Lyte Send a message via Yahoo to Lyte Send a message via Skype™ to Lyte
Defragging Multiple Hard Drives

So many of us these days have multiple hardrives. Did you know you could defrag all of them at one time!

In Windows XP, its Disk Defragmenter Utility is unable to defrag all hard drives at the same time. Thus, it is of much inconvenience when you have more than one hard drive in your PC. To do this, a method of creating a batch file to defrag all of the drives one after another shall be used.

The Disk Defragmenter Utility in Windows XP can be generated from the command line with the following syntax:

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

Usage:
defrag <volume> [-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

The first step is to create a file named defragall.bat, and to place it anywhere for your convenience and easy access. Furthermore, to run it from the command line, it can also be placed in the Windows directory so that it will be available in the system path.

Second, for each hard drive, you need to add a line onto the batch file. For instance, if you want to defrag drives C:, D:, and F:, you will add these three lines:

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

To run the defragment, you may double-click the batch file or start from the command line.
Lyte is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

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



All times are GMT -5. The time now is 07:20 AM.

Powered by vBulletin Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC5