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

Microsoft Community Contributor Award Recipient

Microsoft Windows 10 Pro Insider Preview 64-bit

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
A Guy

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:

  • (Default)--- Reg_SZ--- Optimise Files
  • Icon -------Reg_SZ--- C:\Scripts\myicon.ico
  • Position-----Reg_SZ--- Middle

  • (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

 Context Menu Item Creation

Thread Tools

Similar help and support threads
Thread Forum
Item name in context menu changes itself
I'd like to change the name of "Screen resolution" item in right click menu and it works... by the time. I've been searching for this name whole C: partition and in the registry, and I found it there: 28\5DB2B7D1], more specifically in the @C:\Windows\System32\display.dll,-4 file as the registry...
Delete context menu item
This is kind of baffling to me, but I can't find where to delete a context menu item that appeared when I installed some program on my HTPC (Windows 7 Ultimate x64). It's not there when I right-click on a file or on a folder. It's there when I right-click the desktop. ...
General Discussion
Remove item from context menu
This is a very strange situation: The folder context menu shows multiple instances of VTSync, see screen grab. This is a legitimate program, but really has no place in the context menu. What is so frustrating is that I cannot remove it! The item seems to get placed in the context menu when the...
Context menu item not showing
I have installed FileBookmark, and it shows up at the following registry address: Computer\HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\FileBookmarkShExt1_0 However it doesn't show in the context menu. Others under shellex\ContextMenuHandlers address are showing, but not...
Mysterious context menu item! ;_;
Hi everyone! I'm running Windows 7 x64, and am trying to make it so that all my images open in the basic Windows Photo Viewer. For some reason, all files with the .gif extension contain an 'Open With' item called 'Photo Gallery Viewer'. This item has no icon and doesn't work. How can I remove...
General Discussion
Persistant context menu item
Hello, I found another bug in Windows Seven. I feel like I have more bugs with 7057 and 7068 than I had with 7000 and earlier. I will probably solve this problem by rebooting, but I never reboot so this is annoying. If I right click and choose an item in a context menu, the item stays,...
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 17:23.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App