defrag.exe -v e: >c:\temp\logfile.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.
***
Chris Sanders is the network administrator for one of the largest public school systems in the state of Kentucky. Chris's specialties include general network administration, windows server 2003, wireless networking, and security. You can view Chris' personal website at www.chrissanders.org.