Open Notepad > click File > Save As > Save the .txt file to Desktop > rename it to whatever.reg
Right-click whatever.reg file and choose “edit”
Paste the following code into it:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Drive\shell\Defrag\Command]
@=”defrag.exe %1 -f -v”
Save and close
Double click whatever.reg and answer yes/ok to the questions
Right click a drive and choose ‘Defrag’ option to defragment
MS-Dos window will be closed after it’s done defragment


