Integrating an app with Windows Explorer context menu

  • Thread starter Thread starter Patrick Pirtle
  • Start date Start date
P

Patrick Pirtle

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.
 
Patrick Pirtle said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top