So I'm trying to make a right click context menu option that will copy the path of a file in Windows 7. This is my registry stuff:
[HKEY_CLASSES_ROOT\*\shell\Copy path]
[HKEY_CLASSES_ROOT\*\shell\Copy path\command]
@="C:\Windows\System32\Tweaks\ContextCopy.exe path %1"
The option correctly shows up in the context menu. ContextCopy.exe takes a the file's absolute path as a string and internally copies it to the clipboard depending on what the first argument is. It works fine as I've tested it from the command prompt with an actual filename for the last argument. But whenever I do it from the context menu, I get an error pop up that says "This file does not have a program associated with it for performing this action." And the title of this pop up is the path of the file that I right clicked and opened the menu on. The path is also not copied to the clipboard.
I think %1 should give the file's absolute path as a string, right?