0
I'm trying to write a script and add it to the right click context menu. To add the items to the menu, I've used this: Windows: How to add batch-script action to Right Click menu, except instead of
HKEY_CLASSES_ROOT\Directory\shell\MyScript1
I've used
HKEY_CLASSES_ROOT\*\shell\MyScript1
so they would appear on all files, regardless of the extension.
Now, in the actual bat file, I need a way to know which file was right-clicked on, so I can use it as an input. Is there any way to put the full path of the file in a variable for later use?
1Great. I've still got a lot to learn. Thank you. – user304822 – 2014-03-04T03:41:11.067