Auto-running Disk Defrag in 2k

  • Thread starter Thread starter CoryK
  • Start date Start date
C

CoryK

I cannot figure out how to get disk defrag to run on a schedule. I can
get it to pop up but not run the program. Any idea on what I am
missing? I know how to get it to do it in XP, but i need to know how in
2k.....
 
Applies to Windows 2000 if you have defrag.exe. Idon't know if it came with
2000 or not. You cannot schedule dfrg.msc.

How to Automate Disk Defragmenter Using Task Scheduler Tool in Windows XP
http://support.microsoft.com/kb/555098

There are two defrag tools in XP.

dfrg.msc is the pretty one that opens from
Start\All Programs\Accessories\System Tools.

defrag.exe is the command line tool that runs from the command prompt.

defrag.exe is the one that you can schedule.

Description of the New Command Line Defrag.exe Included with Windows XP
http://support.microsoft.com/default.aspx?scid=kb;en-us;283080

How To Schedule Tasks in Windows XP
http://support.microsoft.com/default.aspx?scid=kb;en-us;308569

How to Defragment Your Disk Drive Volumes in Windows XP
http://support.microsoft.com/default.aspx?scid=kb;en-us;314848

You can also download defrag_all2.vbs.

defrag_all2.vbs - Defrag All Hard Drives - Can be run as a scheduled task
Does not create an error log
© Doug Knox - rev 03/29/2002
http://www.dougknox.com/utility/scripts_desc/defrag_all.htm

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
Annoying huh?
Here's a script I used on my Windows 2000 system. Well, this isn't the
exact one, but I found it using Google. It opens the defrag GUI, and then
sends the correct keypresses to the window to get it to defrag, then exit.
You can schedule this script (Make sure you allow this script file in your
antivirus program--some block all scripts).

save this file to your hard drive and then schedule it. I'll leave it on my
server for a few weeks: http://www.thekeene.com/defrag.wsc


Shawn
 
Back
Top