Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Context Menu Item Creation


08 Oct 2011   #1

Windows 7 32 Bit
 
 
Context Menu Item Creation

Can someone please help me to create a context menu item. I would like to select a few files, right click and have a menu option to run a program. The program need to receive the files or folder selected as arguments. Any help appreciated.

My System SpecsSystem Spec
.

08 Oct 2011   #2
Arc

Microsoft Community Contributor Award Recipient

Windows 7 Home Premium 64 Bit SP 1
 
 

My System SpecsSystem Spec
09 Oct 2011   #3

Windows 7 32 Bit
 
 

Thanks Arc, that is a very interesting program but not quite what I need. I probably should better explain what I'm trying to do. I need help to create the registry entries to create a context menu item called "Optimise". To use the context menu item you drag a box around some photos in a folder, right click the selection and select "Optimise". The context menu item needs to run a program and pass the selection as commandline arguments to the program.
My System SpecsSystem Spec
.


09 Oct 2011   #4

Microsoft Community Contributor Award Recipient

Windows 7 Home Premium x64 SP1
 
 

My System SpecsSystem Spec
09 Oct 2011   #5

 
 

My System SpecsSystem Spec
09 Oct 2011   #6

Windows 7 32 Bit
 
 

Thanks A Guy and Imperfect1.

I used Ultimate Window Context Menu Customiser to get the key i need. The link on the home site for this program was dead. Working link found here:

Download: Ultimate Windows Context Menu Customizer ~ MinitechSource

The keys I wound up with are:

HKEY_CLASSES_ROOT/*/SHELL/MYKEY/
  • (Default)--- Reg_SZ--- Optimise Files
  • Icon -------Reg_SZ--- C:\Scripts\myicon.ico
  • Position-----Reg_SZ--- Middle

HKEY_CLASSES_ROOT/*/SHELL/MYKEY/COMMAND
  • (Default)----Reg_SZ----C:\Scripts\myprogram.exe %1

This is running the program properly and passing the files selected as arguments to the program. The problem is that it runs a seperate instance of the program for everyfile I select.

So if I drag a box around three files, right click selection and left click Optimise Files then I get three instances of the program run with single file in each, instead of a single instance with three files in it.

What I need is for it to pass all the files as arguments to a single instance of the program.

Can anyone help with this?
My System SpecsSystem Spec
Reply

 Context Menu Item Creation




Thread Tools



Similar help and support threads for2: Context Menu Item Creation
Thread Forum
Solved Remove item from context menu Customization
Context menu item not showing Software
Open With Context Menu Item - Add or Remove Tutorials
context menu-editors that can remove ANY item ? Performance & Maintenance
Adding a context menu item to Windows 7 Customization
Mysterious context menu item! ;_; General Discussion
Persistant context menu item General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 11:10 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33