How can I schedule DEFRAG utility to run auto in W2K?

TomBilliodeaux

Senior member
Sep 29, 2000
788
0
0
I would like to schedule weekly defrag on 3 partitions.
How can I do this in W2k?

One problem i see is that the Win defrag utility asks for options before running.
The main problem is selecting the drive that is other than the current drive.

I'm sure that a batch file could be written, but I don't know how to command the options required in the utility program once it begins.
Any tips?
 

syf3r

Senior member
Oct 15, 1999
673
0
0

yeah there is the task scheduler, but i don't think that defrag is a command-line tool anymore, so i'm not sure how you would go about setting it up...

-syf3r.
 

ctll

Senior member
Sep 28, 2000
208
0
0
add new task. scheduled tasks. control panel.

also, the AT command line tool.
 

trmiv

Lifer
Oct 10, 1999
14,670
18
81
You CAN'T use the Task Scheduler to run an automatic defrag in windows 2000. The defrag utility in Windows 2000 is actually a cut down version of Diskeeper from Executive Software and will always ask for user input, it's a licensing issue.

Unfortunetly the easiest way to be able to run scheduled defrags in W2K is to buy a commercial defrag utility like PerfectDisk 2000, Diskeeper (full version), SpeedDisk 5.0, etc. Not only can you schedule defrags with these, they are also faster than the one built into Windows 2000.

There are also some scripts out there that will make the Task Scheduler do it automatically, but I've only tried one and it didn't work well.
 

TomBilliodeaux

Senior member
Sep 29, 2000
788
0
0
Thanks trmiv,
You're right. I have not been able to run from task scheduler. I inserted the defrag by using the search in the "add task" utility.
It did not work.

The options in the utility necessitate user interaction when running the exe. Seems like a batch file would work.

Anyone know how to write one and execute it? It would set up as:
Prompt: Which drives to defrag?
What time to start?
How many times to defrag?
I find that Win2k does a poor job and must defrag at least 2-3 times to get a clean defrag.