Defrag your hard drive the no frills way

Status
Not open for further replies.

microsoftne

In Runtime
Messages
469
Create a shortcut on your desktop by opening notepad and and putting in the line defrag c: Save this file as defrag_c.bat or whatever you desire. When double-clicking this shortcut, it will open the command prompt and, you guessed it, defrag drive, c:

Gone is the fancy interface and options. Well there are a few options, but you'll have to enter them by using one of the following in your batch file:

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:\vol\mountpoint)
-a Analyze only
-f Force defragmentation even if free space is low
-v Verbose output
-? Display this help text

You can make a batch file for each drive individually, or add them to a single file like this:

defrag c:

defrag d:

defrag e:

The output in the command prompt isn't very verbose, but it is defragmenting.
 
Status
Not open for further replies.
Back
Top Bottom