Solved

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

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
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...
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
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)

705 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

19 Experts available now in Live!

Get 1:1 Help Now