Add simple entry to explorer context menu(CreateProcess static verb).


  1. Posts : 3
    Windows 7 Professional 64 Bit
       #1

    Add simple entry to explorer context menu(CreateProcess static verb).


    What I want to do is very simple.

    I wish to add an entry to the context menu displayed in Windows Explorer, invoking a command line program with the file (or folder) path as an argument.

    If I right-click on ANY file or folder, I want the context menu to contain an, entry, call it "Foo", that, if clicked, will execute (say) "c:\bin\foo.exe %1", in which %1 is the path of the selected folder or file.

    It seems to me that Microsoft documenters sometimes make extraordinary efforts to obfuscate simple procedures.

    I suspect that I wish to use a "CreateProcess" static verb.

    Such functionality should not require implementing a COM interface.

    It seems to me that it should require nothing more than a registry update.

    Let me be clear about something:

    I don't want the application to be available/invoked for specific file types. I want the relevant context menu option available for any folder or file that is right-clicked.


    Think of the "copy" and "delete" entries on the context menu, which apply to all file and folder types (and which have nothing to do with "open", "print", etc).

    I don't know whether this entails selecting a file type of "*" (incidentally, I want files/folders with ANY extension, as well as files/folders with NO extension), or if this is handled independently of the "file type" handling mechanism.

    One would think that googling '"windows context menu" CreateProcess' would find simple instructions for performing this presumably simple (and, I would think common) task.

    Thanks in advance for any help.
      My Computer


  2. Posts : 53,395
    Windows 10 Home x64
       #2

    Welcome to Seven Forums Bannerdog. See if something simple like this will do what you want.

    Context Menu Editor: Add remove Context Menus in Windows

    If not, someone with greater knowledge then I will be needed

    A Guy
      My Computer


  3. Posts : 3
    Windows 7 Professional 64 Bit
    Thread Starter
       #3

    Thanks, but no-go


    A Guy..

    Thanks for replying.

    Unfortunately, that didn't work for me.

    That utility did add a command to the Windows Explorer context menu, but only the menu that appears when no file/folder is selected.

    I want to add a command to the menu that appears when a file/folder is selected (and have the relevant program receive the file/folder path as an argument).
      My Computer


  4. Posts : 3
    Windows 7 Professional 64 Bit
    Thread Starter
       #4

    I found a utility that does what I want:

    Download ContextEdit 1.2

    It even has source, if you use the right download link.

    I can also see how it updates the registry.
      My Computer


  5. Posts : 53,395
    Windows 10 Home x64
       #5

    Good you found something that works for you. A Guy
      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 16:39.
Find Us