Defrag command line switches

Defrag.exe is a command line tool included with Windows, which is quite useful when wanting to perform a scheduled defragmentation of the hard disk. There are several command line switches available when running the tool:

Show available command line switches:

defrag -?

Analysis of the partition to discover fragmentation level:

defrag c: -a

Force defragmentation of the partition (Even if not having 15% free space available):