Solved

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

Posted on 2008-10-01
1
624 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

856 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