Re: Defrag Command Line

From: Doug Allen [MSFT] (dougall_at_online.microsoft.com)
Date: 03/04/04


Date: Thu, 4 Mar 2004 15:09:42 -0500

They have changed this behavior in XP that allows you to script the defrag
... you can read more here:

283080 Description of the New Command Line Defrag.exe Included with Windows
XP
http://support.microsoft.com/?id=283080

-- 
Doug Allen, Windows 2000 MCSE
This posting is provided "AS IS" with no warranties, and confers no rights.
OR if you wish to include a script sample in your post please add "Use of
included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm"
"Mike" <hornerm@esquimalt.ca> wrote in message
news:zLt1c.657502$JQ1.69005@pd7tw1no...
> Thanks Guys, downloaded and am using Autofrag.  great little util.
>
>
> "Bob I" <birelan@yahoo.com> wrote in message
> news:4044E34D.1030607@yahoo.com...
> > Nope. You either have to script it with something like AutoIt or buy a
> > 3rd party defragger that supports scheduling.
> >
> > Mike wrote:
> >
> > > Does anyone know if there is a command line that will START defrag.
So
> far
> > > I have been able to usethis:
> > >
> > > %SystemRoot%\System32\dfrg.msc c:\
> > >
> > > to get Defrag to automatically go to the C:\ drive, but I still need
> user
> > > intervention to start it.  (I WILL be executing this command as
> > > administrator, so that is not an issue).
> > >
> > > Thanks
> > >
> > > -mike
> > >
> > >
> > >
> >
>
>


Relevant Pages

  • Re: Writing Script for ScanDisk and Defrag
    ... Microsoft PowerShell MVP ... But you might want your script to actually do more work to make sure it is not defragging and scanning too often. ... I would still recommend that you go back to square one and make sure that the *reason* for doing these things is well understood. ... That seems a small risk to me, however, as defrag is designed to avoid committing changes that would leave the file structure in an invalid intermediate state. ...
    (microsoft.public.scripting.wsh)
  • Re: Defragmenting Hard Drive
    ... command line defrag. ... >Using the defrag command line interface in Windows XP, ... >write a script that you can schedule using Task ... Scheduler to run ...
    (microsoft.public.win2000.file_system)
  • Re: Cannot execute Windows commands via Python in 64-bit
    ... calls the Windows defrag command. ... Windows 2003 I get the following message: ... Are you running the script in the foreground or scheduled? ...
    (comp.lang.python)
  • Re: Writing Script for ScanDisk and Defrag
    ... Plus you can do things like boot time defrag which you can't do with the built-in defrag tools. ... Microsoft PowerShell MVP ... >> You could make it part of a user's logon script, ... >> scheduled task to run one time only. ...
    (microsoft.public.scripting.wsh)
  • Re: Writing Script for ScanDisk and Defrag
    ... Microsoft PowerShell MVP ... The big bosses want a simple script wrote to run this. ... you can't do with the built-in defrag tools. ... > at the Command Prompt to see what the switches mean. ...
    (microsoft.public.scripting.wsh)

Loading