Automating Disk Defragmentation

Written by on Sunday, March 2, 2008 2:00 - 0 Comments

Windows XP and Windows Server 2003 both include a new way to invoke the Windows defragmenter via the command line. This allows for easy automation of this task.

Windows XP and Windows Server 2003 both include a new way to invoke the Windows Defragmentation tool via the command line. This is different from prior versions of Windows in which there was no such command line based way to invoke this tool. Here is an example of the usage of defrag.exe:

defrag.exe -v e: >c:templogfile.txt

This command will begin the Defragmentation of the target machines E: drive. The –v switch enables verbose logging of which the location is specified at the end of the command.

The biggest advantage of this new functionality is the ability to schedule disk Defragmentation via the Windows Task Scheduler. By simply creating a batch file to invoke this command you can put an end to disk Defragmentation as a manual process.

Article written by MyComputerAid.com



Leave a Reply

You must be logged in to post a comment.

2003 server - Sep 30, 2008 22:34 - 0 Comments

instant messaging srv records

More In Computers & PC


Microsoft Outlook - Mar 22, 2009 11:22 - 0 Comments

Outlook: Duplicates in Mailbox

More In Computers & PC