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
--------stop copy before this line-----


Popular posts from this blog

How to recalibrate your Samsung Note 4 battery

How to import Tasker projects, profiles, tasks and scenes

How to turn your Windows 7 laptop or dekstop into a WiFi repeater or extender