Defrag as Scheduled Task

  • Thread starter Thread starter PLC
  • Start date Start date
P

PLC

I am trying to run Disk Defrag as a scheduled (unattended)
task on WIN2K Pro. Defrag opens okay but waits for the
user to select Analyze or Defragment. How to I just run
Defragment? Is there a switch I need to include in the
command line?
 
There is no command line interface to the built-in defragmenter in Windows
2000. This makes it difficult to schedule. If you are familiar with
Windows Scripting Host (WSH), you can create a script that runs the GUI
interface and sends the appropriate key strokes to simulate a user running a
defrag on a drive. You can then use Task Scheduler to schedule this script.

If you do a net search for AutoDefrag, you can find an application that does
essentially this. However, since it is running the built-in defragmenter,
you still have all of the limitations of the built-in defragmenter.

- Greg/Raxco Software
Microsoft MVP - Windows Storage Management/File System

Disclaimer: I work for Raxco Software, the maker of PerfectDisk - a
commercial defrag utility, as a systems engineer in the support department.
 
Back
Top