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: Add simple entry to explorer context menu(CreateProcess static verb).


21 Jun 2014   #1

Windows 7 Professional 64 Bit
 
 
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 System SpecsSystem Spec
.

21 Jun 2014   #2

Microsoft Community Contributor Award Recipient

Windows 7 Home Premium x64 SP1
 
 

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 System SpecsSystem Spec
22 Jun 2014   #3

Windows 7 Professional 64 Bit
 
 
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 System SpecsSystem Spec
.


22 Jun 2014   #4

Windows 7 Professional 64 Bit
 
 

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 System SpecsSystem Spec
22 Jun 2014   #5

Microsoft Community Contributor Award Recipient

Windows 7 Home Premium x64 SP1
 
 

Good you found something that works for you. A Guy
My System SpecsSystem Spec
Reply

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




Thread Tools



Similar help and support threads for2: Add simple entry to explorer context menu(CreateProcess static verb).
Thread Forum
w7x64: explorer context menu: entry for all file types? Software
add an icon to a context menu entry made by the system ? Customization
Solved Context Menu entry to create shortcut in folder Customization
Remove context menu entry icon Customization

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 01:37 AM.
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