How to add a right-click menu action that runs a custom batch script.
# Windows: How to add batch-script action to Right Click menu I have tried on Windows XP SP3 with this .reg key. Don't have Windows 7 at the moment to test it properly but it should be almost the same. 1. Open Notepad and paste the code from below. 2. Edit as per your need. 3. Save as `MyScript1.reg`. 4. Double-click `MyScript1.reg` to import in registry. 5. Test by Right-clicking on any directory in Explorer. Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\shell\MyScript1] @="Execute MyScript1" [HKEY_CLASSES_ROOT\Directory\shell\MyScript1\command] @="\"C:\\MyScriptsDirectory\\MyScript1Directory\\MyScript1.bat\" \"%1\""