Could you not run it throught scheduled tasks in the control pannel
MartyMcFly
Practically a Master Poster
678 posts since Feb 2005
Reputation Points: 16
Solved Threads: 17
I spent 30mins looking at this, with interest, and cant work out what you have done wrong.
The script looks perfect as long as you have the right location and file name. How come your defrag isn't defrag.exe.
Must be something with the location and command, because the rest is fine.
But if you can run
c:\WINNT\system32\dfrg.exe d: -f
from the run command in start menu, then....
MartyMcFly
Practically a Master Poster
678 posts since Feb 2005
Reputation Points: 16
Solved Threads: 17