Programmatically execute Windows Explorer context menu items

Is there a consistent, reliable way to access the context menu items that Explorer shows when I right-click on an item? I do not want to show the menu, I just want to analyze the elements in the background and execute them programmatically.

I tried various combinations of IShellFolder, IContextMenu and other COM interfaces, and I can not find anything that works in concert.

How to programmatically execute Windows Explorer context menu items?

+6
source share
3 answers
+5

, Raymond Chen, IContextMenu .

Runmenu, (- down, , .exe - )

+3

Context.exe http://www.maddogsw.com/cmdutils/

:

PS D:\Downloads\cmdutils> .\Context.exe /text .\ReadMe.txt
 1: Open
 2: Print
 3: Edit
 4: Add to Multi-Rename List
 5: PowerCmd Here
 6: (bitmap)
 7: 7-Zip                -->
 8: ------------------------
 9: Sign and encrypt
10: More GpgEX options   -->
11: ------------------------
12: Open with            -->
13: Search with InfoRapid
14: ------------------------
15: (bitmap)             -->
16: ------------------------
17: (bitmap)             -->
18: ------------------------
19: (bitmap)             -->
20: ------------------------
21: Unlocker
22: ------------------------
23: Restore previous versions
24: ------------------------
25: Send to              -->
26: ------------------------
27: Cut
28: Copy
29: ------------------------
30: Create shortcut
31: Delete
32: ------------------------
33: Properties
Choice? 30
+3
source

All Articles