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.
 

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
Defrag 4
Defrag 3
Scheduled Disk Defragmenting Problem 2
Defrag/shutdown batch file 4
Defrag questioon 4
Defrag as Scheduled Task 5
Schedule Defrag 2

Back
Top