This won't help on Win2K, but with Win2K3 MS made available WMIC and
issuing the following command will result in a command line schedulable
defrag. As was posted earlier WMI VBS scripts can do it too, but from my
readings automation of defrags via WMIC or WMI is only supported on
Win2K3
wmic volume where driveletter="c:" call defrag
change the drive letter to match any drives you want to defrag (replace
defraganalysis if you want to get an analysis first)
"Christos Kritikos" <(E-Mail Removed)> wrote in
message news:029f01c48af2$62b0a900$(E-Mail Removed)...
>
> I had the same question! I tried to find defrag.exe but
> to no avail (this is on a Win2k Srv). There is a
> dfrgntfs.exe but when I try to run it I get that "command
> line operation of disk defragmenter is not supported".
> Any other ideas?
>
> thanks
> christos
>
>
> >-----Original Message-----
> >Browse to Defrag.exe . You are scheduling defrag.msc.
> There are two defrag program. See help.
> >
> >--
> >---------------------------------------------------------
> -
> >'Not happy John! Defending our democracy',
> >http://www.smh.com.au/articles/2004/...088392635123.h
> tml
> >
> >"Doug Watt" <(E-Mail Removed)> wrote
> in message news:c68a01c48a2b$32071bd0$(E-Mail Removed)...
> >> I want to run defrag from my scheluled tasks but it
> brings
> >> the program up but it doesn't start running. Is there
> >> something else I need to do?
> >.
> >