Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Does anyone know of a way to defragment an XP machine using a batch file with an 'AT' command? So to create a scheduled task on any PC in which it is run.
And also to allow this script to run successfully even with a restricted user logged on?
Any assistance greatly appreciated.
Regards,
Darren King

Doesn't seem practical. Defrag while someone is using the pc will have it restart over and over again.. You'll just frustrate the user trying to use the pc.

If you don't mind spending the money, DiskKeeper is a great program and will run in the back gorund. Once it's done a defrag a few times, you won't notice it hardly at all unless you're doing really intense disk/processor type work.
Not cheap, but good.
Larry

I know a way without using a batch file. I have a scheduled task for both of my partitioned drives.
Make a scheduled task that runs defrag.exe and when you get to the screen that has the "Run:" box and the path "C:\WINDOWS\system32\defrag.exe" add a space, then the drive letter to be defragged and a colon...it should look like this...
"Run: C:\WINDOWS\system32\defrag.exe C:" or
"Run: C:\WINDOWS\system32\defrag.exe E:" depending on the drive letter.Email me if you have any questions.
AMD Athlon 64 3500+ socket 939
1 GIG PC3200 DDR RAM
2x120 GIG 7200PRM HD's SATA/RAID 0
PNY Nvidia 6800 128MB
Lite-On DVD+-RW DL

Just to complement the above...
Description of the New Command Line Defrag.exe Included with Windows XP
i_XpUser

Diskeeper Pro 9.0 can be had all over ebay for $29.99 with a cd yet, and it does run in the background and really quietly defrag all the time...this program is so far superior to Windows defrag....

this program is so far superior to Windows defrag
Well Windows XP defragger is made by the very same company that sells Diskeeper.
i_XpUser

"Well Windows XP defragger is made by the very same company that sells Diskeeper."
Yes that's right XP User, but that is a stripped down version in XP with none of the features of the full program, as I am sure you know!

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |