Schedule and Speed up Defragment Process

Speed Hard Drives
By See all their Tutorials
On regular use of system, Windows randomly saves data and then randomly deletes them as required. This random access of the storage media and read/ write process fragments the large data files before storing it in the hard drive. Fragmentation slows the read/ write performance of the hard drive because the data is not well organized, and the system needs to assemble the fragments to provide the required data as a complete information.

The optimum speed of data access may be recovered if the hard drive is defragmented on a regular basis. Defragmentation places the fragmented files scattered in distant clusters of the hard drive in the contiguous clusters, hence making it easier for the read/write heads of the hard drive to gather the needed information almost instantaneously.

Speed up defragmentation:

Windows 7 has built-in defragmentation feature which is by default scheduled to be executed every week. However, since the process is set as low priority, it gets interrupted or stops altogether in case any high priority process or application is already running in the background, or is initialized at the time of defragment process.

Therefore, in order to perform the defragmentation process with high priority, a batch file with appropriate parameters can be created executed at the specific times.

Schedule defragmentation:

As discussed above, running other applications or accessing other files may hamper the defragmentation process. To avoid this, the process is scheduled. This can be done by creating a batch file with specific parameters that set the priority level of the defragmentation process to normal, hence allowing Windows to perform the task without interruptions, and using the Windows Task Scheduler to schedule the execution of the batch file.

Creating a batch file:

  1. Open Notepad.
  2. Write command Defrag “C:” /H. (C: drive is to be defragmented using this batch file. Also, /H parameter is used to set defragmentation process priority level to normal.