"Patrick Pirtle" <Sp**@technotrope.com> wrote in message
news:10*************@corp.supernews.com...
Well, I've spent the last 5 hours with Google, trying to find the answer
to this question--I have an app that needs to perform its operations on
a folder (or folder background) selected in Windows Explorer. I also
downloaded a 3rd-party app DLL (Fast Explorer) that lets me add my
own items to the context menu. So far, so good.
However, when I activate my app from the context menu, I can't
figure out how to pass the name of the selected folder to my app.
It insists its working folder is "C:\WINDOWS\system32\1033".
TIA for any help or suggestions.
It might be just "%1". This is from a .reg file I use to add "Command
Prompt" to Explorer's context menu when you right click a directory name:
[HKEY_CLASSES_ROOT\Directory\shell\Command Prompt\Command]
@="cmd /k cd \"%1\""
So your registry entry would need to be something like this:
[HKEY_CLASSES_ROOT\Directory\shell\Patrick App\Command]
@="PatrickApp \"%1\""
I am not totally clear on the backslash issue, i.e. what's needed for "cmd"
and or "cd", but I hope it is enough to get you going in the right
direction.
Best Regards,
Andy