Re: Auto Defrag Script



Try

cmd /k defrag c: -f

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In news:734136B1-20EC-4BF4-B021-19D3D821F29D@xxxxxxxxxxxxx,
Phil Buzzette <PhilBuzzette@xxxxxxxxxxxxxxxxxxxxxxxxx> hunted and pecked:
I am looking for a way to incorporate an auto defrag into the
shutdown/logoff via group policy. The command line is:

defrag c: -f
(forces defrag of C:\)

My problem is that when I reboot or logoff, it takes forever. Now this is
not a problem at the end of the day, but during the day I can't have it.

Is there a way to have the cmd window appear when the script runs so that
I can just close it out if I don't want it to run?
.



Relevant Pages

  • Re: Disk Clean up and Defrag Windows XP Pro
    ... Could you provide me the command line you used for the Scheduled Defrag? ... If you open the Schedule Tasks folder and right-click the Defrag task to ... MS-MVP Windows Shell/User ...
    (microsoft.public.windowsxp.general)
  • Re: Cannot start defrag
    ... Microsoft MVP [Windows XP Shell/User] ... Defrag was messed up for me a while back. ... a command prompt and dfrg.msc. ... MS-MVP Windows Shell/User ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Cannot start defrag
    ... Defrag was messed up for me a while back. ... a command prompt and dfrg.msc. ... MS-MVP Windows Shell/User ... With XP SP2 the DCOM Server Process Launcher service needs to be running ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: CMD
    ... Scroll down to the bottom of the System32 folder. ... cmd in the Run command and click OK. ... MS-MVP Windows Shell/User ...
    (microsoft.public.windowsxp.configuration_manage)
  • Re: Disk Clean up and Defrag Windows XP Pro
    ... Could you provide me the command line you used for the Scheduled Defrag? ... If you open the Schedule Tasks folder and right-click the Defrag task to ... MS-MVP Windows Shell/User ...
    (microsoft.public.windowsxp.general)

Loading