JSI Tip 4383. Windows XP has a command line defragmenter that you can schedule.

The Windows XP command line defragmenter is defrag.exe.

If you open a CMD prompt and type defrag /?, the following is displayed:

defrag <volume> \[-a\] \[-f\] \[-v\] \[-?\]
   volume drive letter or mount point (d: or d:\vol\mountpoint)
   -a     Analyze only
   -f     Force defragmentation, even if free space is low
   -v     Verbose output
   -?     Display this help text

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.