I have made this tool in response to this thread Display location of a specific file (or files) on diskmap.
It's a simple tool to easily run a simple MyDefrag script to highlight or defragment a file or directory with MyDefrag now also custom scripts.
The basic idea is that when this tool is installed in Explorers rightclick(context) menu in a MyDefrag submenu, you can rightclick on any file or directory and choose "Highlight" then MyDefrag will start and show the file highlighted in its diskmap or "Defragment" to defrag a file or a whole directory.
It can also be run directly from the commandline or a shortcut with a FullPath
compatible filepath, to show for example all .exe files on a volume. only difference with FullPath
is that you need to always provide a drive letter or it wont work.
Will show all *.iso files on the F: drive. The default script used is Highlight.MyD, if you put another script name before the path that script will be used instead.
MyDMenuTools.exe Defragment.MyD F:\*.iso
Will defragment all *.iso files on the F: drive.How to use custom scripts or change the default scripts:
Two things are needed for a script to work, first CommandlineVolumes()
is used to specify which volume to run MyDefrag on, second is FullPath("!FilePath!","!FileName!")
including the !FilePath!
macros are used to send the filepath to MyDefrag.
The scripts have to be put in the same directory as the tool, if you add/delete a script or change the title of a script you need to uninstall and then reinstall to update the menu.How to install:
(if you installed a previous version you should uninstall before)
If you want to install the rightclick context submenu options, just extract the files where you want them and then run MyDMenuTools.exe
and it will ask to install the Explorer rightclick submenu. Most probably it needs to be run as administrator when installing.How to uninstall:
Just run MyDMenuTools.exe
and when asked to uninstall choose yes and then remove the files.
This is the fourth beta release and might contain bugs.
includes the .exe file and the original AutoHotkey
MyDefrag Menu Tools uses Fast Explorer Context Menu Extension DLL
to create the MyDefrag submenu.