While I love the scripting capability of MyDefrag, one thing that does irritate me is when I simply want to defrag a specific drive. To do that now, I have to either manually edit a script or do a command line run. I can do that, but why not add a context menu to the right-click event on a system drive? That way you combine the power of scripts with the ease of defragging a single drive.
You can do it fairly easily in C++ - I did it for a work app 3 years ago and there is now better examples out there than there were then.
If you don't want to do it yourself, why not package
Fast Explorer with the MyDefrag installation? Fast Explorer is a context menu dll that allows you to create a context menu for any application or applications. Its completely freeware - you just distribute a dll with the application and generate an INI file containing all of the menu items you want. The INI sits in the same folder as the DLL and you simply register the DLL and voila you have Context Menu in explorer for MyDefrag. Now when I right click on the drive, it sends the script I chose along with the selected drive so that I'm only running MyDefrag against the drive of my choice.
Take a look at the screenshot below (on my machine running Windows 7 64-Bit).
For those interested, I included an example for 32 bit and 64 bit Operating Systems. To make it work, you'd have to put the two files from the appropriate OS zip in the same location (maybe the MyDefrag folder). Open the INI file, do a find and replace and change the paths to point to the folder where YOUR MyDefrag exe is installed (because right now its using my path). Then do a simple...
regsvr32 "C:\Program Files\MyDefrag\FEShlExt.dll"
...command (again make sure the path points to where you have the DLL and INI file).... If you don't like it you can uninstall the dll just as easy:
regsvr32 -u "C:\Program Files\MyDefrag\FEShlExt.dll"
BTW this is 100% Freeware both for personal and commercial use:
http://thesoftpro.tripod.com/downloads/fe/kb.htm#portable2More info on the INI file here:
http://thesoftpro.tripod.com/downloads/fe/kb.htm#installation4The only downside with the approach the developer took with Fast Explorer is that it requires admin rights, so you could detect if they don't have admin rights - don't even offer the option. Or warn if they click that as an install feature that it won't work without Admin rights.