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
Bannerdog

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

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
Bannerdog

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
Bannerdog

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

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 Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Adding icon to Send To entry in context menu?
Is it possible to add icon to the Send To entry in the windows explorer context menu? http://imgur.com/EzyRSkC
Customization
w7x64: explorer context menu: entry for all file types?
Im using a 32bit mass file renaming tool called "rename-it!" (http://sourceforge.net/projects/renameit/), have had no problems using it on W7 x86. However, on x64 the explorer context menu is missing. In a similar situation (with another program) under WinXP x86 I recall being able to edit...
Software
add an icon to a context menu entry made by the system ?
Hi, is it possible to add an icon to a context menu entry made by the system ? :orb: I would like to have an icon for "Open file location". Regards, Tom
Customization
Context Menu entry to create shortcut in folder
Hi there, I have no idea if this is possible although I'm sure it must be - it doesn't seem to be too big an ask. And if this isn't the right place to ask, hopefully, someone can redirect me to somewhere that is. I want to create a context or sendto menu entry where I can right-click a...
Customization
Remove context menu entry icon
is there a way to remove icons of entries in context menu? i dont wanna remove the entry i just wanna remove the icon and the program does not have this option..
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 11:16.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App