Creating custom Explorer context menu extension.

S

Sin Jeong-hun

I can create custom shell extension menu by creating
[EXECUTABLE %1] at HKEY_CLASSES_ROOT\*\shell\[MENU NAME]\Command
But the problem is when I select 2 or more files and click the menu,
separate program instances are launched for each files. Can't I pass
all the file names to just one instance of the program?

For example,
when I select a.jpg b.jpg and click the menu on the Explorer context
menu,
currently it works like this:
viewer.exe a.jpg
viewer.exe b.jpg
but what I want is this:
viewer.exe a.jpg b.jpg

Is it possible? Maybe there's other switch than %1?
 
S

Sin Jeong-hun

It seems that it doesn't work as intended. It just worked as %1. But
thank you any way for sharing your time.
%L rings a bell, but I may be wrong. Worth a try, anyhow.

--
Jon

Circumstances alter cases

I have it on good authority that "Sin Jeong-hun said:
I can create custom shell extension menu by creating
[EXECUTABLE %1] at HKEY_CLASSES_ROOT\*\shell\[MENU NAME]\Command
But the problem is when I select 2 or more files and click the menu,
separate program instances are launched for each files. Can't I pass
all the file names to just one instance of the program?

For example,
when I select a.jpg b.jpg and click the menu on the Explorer context
menu,
currently it works like this:
viewer.exe a.jpg
viewer.exe b.jpg
but what I want is this:
viewer.exe a.jpg b.jpg

Is it possible? Maybe there's other switch than %1?
 
J

Jon

yw - my final passing thought on the matter is to also put the %L or %1 into
quotes (ie "%L" rather than just %L ), which may resolve any problems caused
by spaces between file paths.

--
Jon

If it's there and you can see it - it's real. If it's not there and you can
see it - it's virtual. If it's there and you can't see it - it's
transparent. If it's not there and you can't see it - you erased it!


Latest reports suggest that it was "Sin Jeong-hun" <[email protected]> in
message who said
something like...
It seems that it doesn't work as intended. It just worked as %1. But
thank you any way for sharing your time.
%L rings a bell, but I may be wrong. Worth a try, anyhow.

--
Jon

Circumstances alter cases

I have it on good authority that "Sin Jeong-hun" <[email protected]>
said
in news:[email protected]...
I can create custom shell extension menu by creating
[EXECUTABLE %1] at HKEY_CLASSES_ROOT\*\shell\[MENU NAME]\Command
But the problem is when I select 2 or more files and click the menu,
separate program instances are launched for each files. Can't I pass
all the file names to just one instance of the program?

For example,
when I select a.jpg b.jpg and click the menu on the Explorer context
menu,
currently it works like this:
viewer.exe a.jpg
viewer.exe b.jpg
but what I want is this:
viewer.exe a.jpg b.jpg

Is it possible? Maybe there's other switch than %1?
 

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

Top