?
Solved

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

Posted on 2008-10-01
1
Medium Priority
?
628 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)
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

TCP/IP Network Protocol Cheat Sheet

TCP/IP is a set of network protocols which is best known for connecting the machines that make up the Internet. The truth is that TCP/IP is one of the oldest network protocols and its survival is mainly based on its simplicity and universality.

Question has a verified solution.

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

Configuring Remote Assistance for use with SCCM
This article helps those who get the 0xc004d307 error when trying to rearm (reset the license) Office 2013 in a Virtual Desktop Infrastructure (VDI) and/or those trying to prep the master image for Microsoft Key Management (KMS) activation. (i.e.- C…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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…
Suggested Courses

770 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