Archived from groups: microsoft.public.win2000.file_system (
More info?)
Frank,
It definitely can be done. If you do a Google Search in these newsgroups,
you should be able to find some actual code.
- Greg/Raxco Software
Microsoft MVP - Windows File System
Disclaimer: I work for Raxco Software, the maker of PerfectDisk - a
commercial defrag utility, as a systems engineer in the support department.
Want to email me? Delete ntloader.
"Frank" <anonymous@discussions.microsoft.com> wrote in message
news:175cd01c448f4$2395b390$a401280a@phx.gbl...
> Greg,
> Thanks for the response. I didn't think you could
> command line defrag. As far as scripting the gui part, is
> that something you know for a fact can be done? Or are
> you just guessing? If it is something I can do, do you
> know where I can find the parameters to put into the
> script?
>
> Frank
> >-----Original Message-----
> >Frank,
> >
> >Using the defrag command line interface in Windows XP, it
> is possible to
> >write a script that you can schedule using Task
> Scheduler. However, pushing
> >this script out to 1300 systems and remotely telling Task
> Scheduler to run
> >on those systems may be a bit of a chore

> >
> >For your Windows 2000 systems, there is no defrag command
> line interface.
> >You could write a VBScript that opens the defrag GUI,
> sends the appropriate
> >key strokes to simulate a user defragmenting a drive,
> wait for completion
> >and then close the GUI and then schedule that script
> using Task Scheduler.
> >Again, it may be a bit of a chore to develop and deploy
> remotely.
> >
> >- Greg/Raxco Software
> >Microsoft MVP - Windows File System
> >
> >Disclaimer: I work for Raxco Software, the maker of
> PerfectDisk - a
> >commercial defrag utility, as a systems engineer in the
> support department.
> >
> >Want to email me? Delete ntloader.
> >
> >"Frank" <anonymous@discussions.microsoft.com> wrote in
> message
> >news:1337601c4439a$07e3a300$a501280a@phx.gbl...
> >> I have 1300 workstations in my environment, windows 2000
> >> and windows xp I'm wondering if there is anyway for me
> to
> >> defrag the hard drives of these workstations either
> >> remotely or by setting a scheduled task. Even if there
> is
> >> a command line interface or a vbscript that I can
> execute
> >> that would be great, please advice. thank you.
> >
> >
> >.
> >