Windows Shell Context Menu option Windows Shell Context Menu option shell shell

Windows Shell Context Menu option


You have to create the following registry entries:

HKLM\Software\Classes\*\shell\yourappnameHKLM\Software\Classes\*\shell\yourappname\command

the first registry entry is a key, the second a string value. Set the value of the command entry to the path of your batch file, e.g. "c:\batch.bat %1"

The '%1' will get replaced by the path the context menu was shown for.

The '*' entry is for all files. If you want your menu to show up for folders/drives/whatever, you have to also add the same registry keys/values for those too, e.g.,

HKLM\Software\Classes\Folder\shell\yourappnameHKLM\Software\Classes\Folder\shell\yourappname\commandHKLM\Software\Classes\Directory\shell\yourappnameHKLM\Software\Classes\Directory\shell\yourappname\commandHKLM\Software\Classes\Drive\shell\yourappnameHKLM\Software\Classes\Drive\shell\yourappname\command