Re: Want defrag to run in the scgedule task



"ottagothen (Joe)" <ottagothenJoe@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:37720E03-2BD9-4771-985D-20ED553E4CA8@xxxxxxxxxxxxxxxx
I want the task manager to run the defrag. But I want it to start without it
stopping to ask for setting.
Running windows XP


Use the command line:

defrag <drive>:

where <drive> is c, d, e, or whichever one you want to defrag. You cannot NOT specify a drive letter and you can specify only one drive, so you will need as many tasks to do defrag as you have partitions (i.e., drive letters) unless you write a batch file with multiple calls to the defrag program, each with a different drive letter, and run the .bat file in the scheduled task.

.



Relevant Pages

  • Re: Can Cleanup & defrag work on all drives with one click?
    ... I am sure someone can tell you haw to set up a batch file to do that. ... volume drive letter or mount point ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Disc Defragmenter
    ... is there a way to get the disc defragmenter ... You can create a batch file that will run defrag. ... Go to scheduled task and schedule the batch file that you created. ...
    (microsoft.public.windows.server.general)
  • Re: Scheduling Defragmentation
    ... You have to provide a drive letter along with defrag.exe ... - Greg/Raxco Software ... Microsoft MVP - Windows File System ... commercial defrag utility, as a systems engineer in the support department. ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Disk defrag report message
    ... Where X is the actual drive letter you want to defrag. ... MS-MVP Windows Media Center\Windows Powered Smart ... > report noted a large file that can't be defragmented. ...
    (microsoft.public.windows.mediacenter)
  • Re: Defrag has disappeared in XP
    ... If the Defrag program ... where X is the cd drive letter. ... MS-MVP Windows Shell/User ... > defrag to be able to re-install from control panel.... ...
    (microsoft.public.windowsxp.perform_maintain)