Defrag as Scheduled Task

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?
 
G

Greg Hayes/Raxco Software

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Defrag not your SSD 11
Windows XP Unable to Defrag 1
Defrag as Scheduled Task 5
CheckDisk problem 9
Defragmentation as scheduled task? 8
How Do I install Defrag 6
Help with Scheduled Task (Defrag) 4
Vista Does NOT Defrag 7

Top