From Explorer multiselection, "Open With" pass arguments to .bat

G

Guest

This functionality has probably been around for years, but I've never needed
it.

From Windows Exploreer I wish to multiselect several files, then use the
Context menu to "Open With", and specify an old style .bat batch file.

In there I'd like to be able to actually get all the file names. It seems
that regardless of the multi-select, Windows is only passing one filename.
(And not always the "first", it seems to pass the one that I right-click on,
sort of ignoring the multi-select aspect.)

Any thoughts on how to do this? Better ways?

I know there must be some way of getting the complete command line because
if I do the same with something like Microsoft Office Picture Manager instead
of my batch file, it will access all the files.

Thanks, Steve.
 
G

Guest

Followup: I noticed your instructions on your web page for adding a command
to the right click menu.
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\Command Prompt Here]
@="Command &Prompt Here"

[HKEY_CLASSES_ROOT\Directory\shell\Command Prompt Here\command]
@="cmd.exe /k cd %1 "

That would work for me as well if the command would be executed for every
file in the multiselection. Is that how it works?

Otherwise (and I don't know why my comment below is empty), what I wrote was:

I'm more of a Unix/Database guy than an windows power user. Any more
explicit code towards getting the registry information into Batch file
variables from the batch file would be really helpful.

Thanks, Steve.
 

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