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

Comments

Popular posts from this blog

City Code Table for Casio SGW300HD-1AV Watch

How to force only 4G or LTE network connection for Samsung Galaxy Note 4

Mounting NFS share directory from D-link DNS 320L on Ubuntu 12.04 LTS