Is there a way to launch the defrag utility via the command line? I can make
it open, and even select the proper volume, but I can't find the command to
make it run. Thanks in advance!
Jerold Schulman
09-12-2005, 03:10 PM
On Mon, 12 Sep 2005 05:53:08 -0700, LSI <LSI@discussions.microsoft.com> wrote:
>Is there a way to launch the defrag utility via the command line? I can make
>it open, and even select the proper volume, but I can't find the command to
>make it run. Thanks in advance!
See tip 8414 » AutoDefrag freeware allows scheduling the Windows 2000 defragger.
in the 'Tips & Tricks' at http://www.jsifaq.com
Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
TheMagpie
09-15-2005, 04:17 PM
I presume you are using the commands below to run from DOS prompt??
DEFRAG <volume> [-a] [-f] [-v]
where
-a = Analyze only
-f = Force defrag
-v = Verbose output
Using this command you should be able to select the drive and run the appropriate check.