Windows 7 Forums Search
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows 7. The Windows 7 forum also covers news and updates and has an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7 - Sub-context menus for my custom context menus?

 
10-22-2009   #1


Windows 7 build 7600 64 bit
 
 

Sub-context menus for my custom context menus?

Anybody know if i can create a sub-context menu for all my custom context menu's ?, and how its done

My System SpecsSystem Spec
10-22-2009   #2


 
 


Hi Hakon,

You would need to locate the Context menu that has been added in the registry;

for example

HKEY_CLASSES_ROOT/*/shellex/ContextMenuHandlers/CustomMenu

you would then add a new Key within that which would then produce what you are after.

If you give some details of what exactly you're after, including programs to run, I may be able to create a registry key for you


OS
My System SpecsSystem Spec
10-22-2009   #3


Windows 7 build 7600 64 bit
 
 


Thanks! i would appreciate a preview
If i wanted to put these 3 context menus into a single submenu:

Code:
[HKEY_CLASSES_ROOT\*\shell\takeownership]
@="Take Ownership"
"HasLUAShield"=""
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\*\shell\takeownership\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\Delete on reboot]
@=""
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\*\shell\Delete on reboot\command]
@="CMD /E:OFF /C REG ADD HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\Currentversion\\RunOnce /v \"Del %1 OnNextReboot\" /d ^\"cmd.exe /c DEL /F /Q \\\"%1\\\"\" /f\""
Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\exefile\shell\run in cmd]
@="Run in Command Prompt"
"HasLUAShield"=""

[HKEY_CLASSES_ROOT\exefile\shell\run in cmd\command]
@="cmd /k \"%1\""
My System SpecsSystem Spec
.


03-25-2010   #4


Windows 7 Ultimate
 
 


I would also be interested in this...
My System SpecsSystem Spec
05-16-2011   #5


Win7 x86
 
 

Win7 Context Submenu

I posted a submenu of System Tools Windows 7 Context SubMenu


Last edited by Brink; 05-16-2011 at 12:36 PM.. Reason: embedded image
My System SpecsSystem Spec
05-16-2011   #6


Windows 7 Ultimate x64 SP1
 
 


These two tutorials below may be able to help show you how to. You can right click on the REG file and click on EDIT to see the entries made to the registry to help see how.

System Tools - Cascading Desktop Context Menu

and

Administrative Tools - Cascading Desktop Context Menu

Hope this helps,
Shawn
My System SpecsSystem Spec
Reply

 Sub-context menus for my custom context menus? problems?



Thread Tools



Similar Threads for: Sub-context menus for my custom context menus?
Thread Forum
Customizing Context Menus? Customization
Customizing Context Menus Customization
Remove from Context Menus Customization
Possible to add Right Context menus for folders Customization
Right Click Context Menus Customization


All times are GMT -5. The time now is 08:04 AM.



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
  

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