Context Menu Item Creation


  1. Posts : 3
    Windows 7 32 Bit
       #1

    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 Computer


  2. Arc
    Posts : 35,373
    Microsoft Windows 10 Pro Insider Preview 64-bit
       #2
      My Computer


  3. Posts : 3
    Windows 7 32 Bit
    Thread Starter
       #3

    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 Computer


  4. Posts : 53,363
    Windows 10 Home x64
       #4
      My Computer

  5.   My Computer


  6. Posts : 3
    Windows 7 32 Bit
    Thread Starter
       #6

    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 Computer


 

  Related Discussions
Our Sites
Site Links
About 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 23:43.
Find Us