I've added a Windows right-click menu item by adding registry keys to HKCR\*\shell
, where the command is of the form "path\to\my\program.exe" "params before" "%1" "params after"
. It seems that, if the user right-clicks on a shortcut (.lnk file), Windows is resolving the shortcut and passing the target file's path in as %1
. Does anyone know where this is documented? This is used on Windows 7 and Windows XP machines.
Thanks!