Defrag command line switches

1 January 2000 by Snakefoot | Comment » | Trackback Off
If you want to schedule the defrag of your HDD, then these command line switches are available.

DEFRAG :
  • drive: - Drive letter of the disk you want to defrag
  • /all - Defrag all local, non-removable drives
  • /F - Defrag files and free space
  • /U - Defrag files only
  • /Q - Defrag free space only
  • /concise - Display the Hide Details view
  • /detailed - Display the Show Details view
  • /noprompt - Immediately starts Defrag
  • /Sageset:x - Used to create a profile (x is a number from 0-65535)
  • /Sagerun:x - Used to execute a created profile (x is a number from 0-65535)
More Info MS KB Q155326

Related Defrag partitions to speed up file access

Updated: 23 September 2007

Comments:

Comment by Ant - 14 April 2008 @ 5:28 Reply

no such command as /Q on mine…

Comment by Ant - 14 April 2008 @ 5:31 Reply

there is:
defrag - defragment
- drive letter, C or E on mine
[-a] - analyse only
[-f] - force defrag regardless of free space (min 15% required ordinarily)
[-v] - verbose output - ?????!!?, verbose?
[-?] - “display this help text” yeah… really HELPful…

Comment by Snakefoot - 15 April 2008 @ 9:34 Reply

Are you using Windows 98/Me ? Or are you using Windows XP/Vista ?

Some of the command line switches is not part of the official command line help.

Leave a comment


You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>