Here's a quick command line for defragmenting your hard drive
Using the following switches with the Defrag command will provide a full optimization, sorts files in alphabetical order, also moves files with the hidden attributes and reboots your machine DEFRAG C: /F /S:N /H /B