Solved

Cannot get Windows to operate on multiple files with right click context menu.

Posted on 2008-10-01
1
620 Views
Last Modified: 2012-06-21
I have a VB script that accepts a file path in the command line parameter. I have created a shell context sensitive menu to launch it by adding the following registry key:

HKEY_CLASSES_ROOT/*/shell/Menu Caption/command

with the default value set to:

wscript.exe "C:\full\path\to\vbscript.vbs" "%1"

It works when only one file is selected. Nothing happens when two or more files are selected. While I don't think it is possible to have all selected files passed to the script in one shot, this thread discusses the fact that the files should at least be passed one at a time to successive executions of the script:

Title: Executing VBscript with a right click context menu
Link: http://p2p.wrox.com/topic.asp?TOPIC_ID=26468

But I can't even get that to happen.

Any ideas?

Kevin
0
Comment
Question by:zorvek (Kevin Jones)
1 Comment
 
LVL 81

Accepted Solution

by:
zorvek (Kevin Jones) earned 0 total points
ID: 22622082
The problem was that there was another application with a context menu entry that was interfering. The diagnostic steps were discovered here:

Title: Right-click is slow or weird behavior caused by context menu handlers
Link: http://windowsxp.mvps.org/slowrightclick.htm

I used the manual process: After backing up the registry section HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers, I proceeded to delete each sub key until the problem went away. I restored the section and then deleted the problem key and removed the program.

Kevin
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is an article about Leadership and accepting and adapting to new challenges. It focuses mostly on upgrading to Windows 10.
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now