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

Bannerdog

New member
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

Computer type
PC/Desktop
OS
Windows 7 Professional 64 Bit

My Computer

Computer type
PC/Desktop
OS
Windows 10 Home x64
CPU
INTEL Core i5-750 Quad-Core 3.37GHz
Motherboard
ASUS P7P55D
Memory
HyperX Fury Black Series 8GB (2 x 4GB) 1866Mhz
Graphics Card(s)
EVGA GeForce GTX 750 Superclocked 1GB 128-Bit GDDR5
Monitor(s) Displays
LG 32MA68HY 32" IPS
Screen Resolution
1920 x 1080
Hard Drives
Samsung 840 Evo 120GB, SEAGATE 500GB Barracuda® 7200.12, SATA 3 Gb/s, 7200 RPM, 16MB cache
PSU
ANTEC TruePower New TP-550, 80 PLUS, 550W
Case
ANTEC Three Hundred Illusion
Cooling
COOLER MASTER Hyper 212 Plus, 4 x 120mm 1 x 140mm Noctua's
Internet Speed
85 + Mbps
Antivirus
Avast
Browser
Vivaldi
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

Computer type
PC/Desktop
OS
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 Computer

Computer type
PC/Desktop
OS
Windows 7 Professional 64 Bit
Good you found something that works for you. A Guy
 

My Computer

Computer type
PC/Desktop
OS
Windows 10 Home x64
CPU
INTEL Core i5-750 Quad-Core 3.37GHz
Motherboard
ASUS P7P55D
Memory
HyperX Fury Black Series 8GB (2 x 4GB) 1866Mhz
Graphics Card(s)
EVGA GeForce GTX 750 Superclocked 1GB 128-Bit GDDR5
Monitor(s) Displays
LG 32MA68HY 32" IPS
Screen Resolution
1920 x 1080
Hard Drives
Samsung 840 Evo 120GB, SEAGATE 500GB Barracuda® 7200.12, SATA 3 Gb/s, 7200 RPM, 16MB cache
PSU
ANTEC TruePower New TP-550, 80 PLUS, 550W
Case
ANTEC Three Hundred Illusion
Cooling
COOLER MASTER Hyper 212 Plus, 4 x 120mm 1 x 140mm Noctua's
Internet Speed
85 + Mbps
Antivirus
Avast
Browser
Vivaldi
Back
Top