defrag
/U Print the progress of the operation on the screen.
/V Print verbose output containing the fragmentation statistics.
/X Perform free space consolidation on the specified volumes
/H Run the operation at normal priority (default is low).
Note: File fragments larger than 64MB are not included in the fragmentation statistics.
e.g.
defrag c: /u /v /h