HowTo Defrag your HDDs PROPERLY!

Especially regarding to my FSX Report earlier, where HDD maintenance is very important, here’s a quick tip for keeping your harddisks in very good shape, speed and reliability. Also with context menu integration to defrag single files or folders!

JKDefrag v3.36 – FREE!

This is the tool you want for all your defragmentation and maintenance needs. Forget Windows built-in and other commercial products, as this is small, smart and does a very good job, speeding up your entire system, single harddisks or even folders or files. And it’s for free!

First of all get the appropriate version of the software regarding to your OS. It’ll work on any Windows above 2000 to Win7, 32/64bit versions.

Yes, if you visit the homepage there is a newer version resp. re-branded MyDefrag. Tested that and I don’t like it. Display flickers, technically not as smart as this latest JKDefrag and even not portable. Context integration? I don’t know. So keep up with JKDefrag.

Unzip into any folder you like, I recommend “C:\jkd”, as C: is my Win7 OS on.
Go to the JKDefrag.exe (JKDefrag64.exe) properties/compatibility and select “Run as Administrator”, apply and OK.

Now, everytime you doubleclick on the .exe it’ll defrag ALL your harddisks with default optimized settings. But we want to get it more detailed, to only defragment folders or single files, f.e. a game folder.


To get a context menu integration create an empty .reg file “jkdefrag_int.reg” with following content:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\Defrag File\command]
@=”C:\\jkd\\JkDefrag64.exe -a 3 -d 1 %1″

[HKEY_CLASSES_ROOT\Directory\shell\Defrag Folder]

[HKEY_CLASSES_ROOT\Directory\shell\Defrag Folder\command]
@=”C:\\jkd\\JkDefrag64.exe -a 3 -d 1 %1″

For “C:\\jkd\\” use the folder you unzipped the stuff. Also choose the correct .exe file for your OS, 32/64bit. Everything else can be left as is! Don’t worry about the wildcard. Notice the double backslash!

Doubleclick on the .reg file to import, accept, and you’re done with context menu integration. Now by right-clicking on a file or folder there’d be shown the option “Defrag File” or “Defrag Folder” resp. For further options read the included docs or go to the homepage.

Short description of the options:

  • -a 3 = “The action to perform. N is a number from 1 to 11, default is 3:” … “3 = Defragment and fast optimize [recommended].”
  • -d 1 = “Select a debug level, controlling the messages that will be written to the logfile. The number N is a value from 0 to 6, default is 1:” … “1 = Warning messages [default].”

And else…

You may also add other and further settings, such as close the program, if all done, etc and add the options to the resp. .reg file.

Also a good idea is to use this in windows task scheduler for daily/weekly, whatever special optimizations.

Questions? Feel free to add comments.


  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: