Automate HDD Defragmentation in Windows XP
Below is the batch file codes that i have used to schedule to run weekly during midnight on my office desktop.
Although this process will take hours to run but HDD defragmentation can actually finish under an hour time if HDD defragmentation scheduled to be run every week, during lunch time.
--------start copy from below--------
@echo off
echo Defragmentation started:
date /T
time /T
defrag C: -v
echo Defragmentation stopped:
date /T
time /T
pause
Although this process will take hours to run but HDD defragmentation can actually finish under an hour time if HDD defragmentation scheduled to be run every week, during lunch time.
--------start copy from below--------
@echo off
echo Defragmentation started:
date /T
time /T
defrag C: -v
echo Defragmentation stopped:
date /T
time /T
pause
--------stop copy before this line-----
Comments
Post a Comment