Discussion Locked

Windows 2000 Defrag command

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

How do I start Defrag in 2000 without running
the analyze command? I am looking to execute defrag via a batch file.

5 replies

by gurvindersbains

One of the limitations of Defrag is that cannot be scripted, for the rest of limitations read :
http://support.microsoft.com/support/kb/articles/Q227/4/63.ASP

However there is hope, you can use 'AutoDefrag' utility to launch Defrag from command line/batch file which can be obtained from :
http://www.morphasys.com/autodefrag/

I have tried it and it works, For E.g., copy it to Winnt folder and
Start>Run>C:\WINNT\AutoDeFrag.exe C:

You can use also try 'contig' freeware utility from Sysinternals which takes a slightly different approach:
http://sysinternals.com/ntw2k/freeware/contig.shtml

This discussion is closed to new replies.