Skip to main content

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

    @="Execute MyScript1"

    @="\"C:\\MyScriptsDirectory\\MyScript1Directory\\MyScript1.bat\" \"%1\""