Solved

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

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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

717 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