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: Sub-context menus for my custom context menus?

22 Oct 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
22 Oct 2009   #2
Orbital Shark


Hi Hakon,

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

for example


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

My System SpecsSystem Spec
22 Oct 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:

@="Take Ownership"

@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\Delete on reboot]
[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\""
Windows Registry Editor Version 5.00

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

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

25 Mar 2010   #4

Windows 7 Ultimate

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

Win7 x86
Win7 Context Submenu

I posted a submenu of System Tools Win7 Context SubMenu

My System SpecsSystem Spec
16 May 2011   #6

64-bit Windows 10 Pro

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


Administrative Tools - Cascading Desktop Context Menu

Hope this helps,
My System SpecsSystem Spec

 Sub-context menus for my custom context menus?

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar help and support threads
Thread Forum
Cascading Context Menus
Windows 7 context or shortcut menu has always expanded cascaded items on mouse hover in the past. This has stopped working for me and it now takes an extra click. I'm guessing that there is a registry key gone bad because I can't find any settings for it elsewhere. It is not a big deal but I...
General Discussion
Customizing Context Menus?
Is there a way to customize context menus? For example, if I right click on the task bar a context menu comes up and one of the options is Start Task Manager. This menu option runs tskmgr.exe in the Windows/system32 folder. Can I make a option like this or change the option in the menu to run a...
Customizing Context Menus
Hi, I'm having a problem with my context menu; as I add more programs, more and more items are added to the menu... Thing is, I tend to use these various menus but I cant stand seeing it so long and tedious. I was wondering if there was a program like MMM+ (Context menu program Mmm+. Windows...
Please help with cascading context menus
I have recently added a cascading menu to each of the "desktop" & "my computer" context menus. Both work fine except after powering up the computer the "my computer" cascading menu takes 8 second before showing the actual cascading menu items.After this initial wait the cascading menu shows and...
General Discussion
Possible to add Right Context menus for folders
Is it possible to add folder to the right click context menus? For folders I use often? So I can right click and move files to these folders without opening folders and cut and pasting these?
Right Click Context Menus
In the right click context menu for a picture file …. How can I change the “Edit” to open in another program ... such as Photoshop ??

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 15:40.

Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App