ContextMenu on "Deskop" and "My Computer"

taratata2014

New member
Local time
3:03 PM
Messages
1
On Windows 7 Pro 64bits,
I will make an link in ContextMenu on "Deskop" and "My Computer"

My setting have 1 Master Menu with 18 Sub-Commands and 1 Sub Menu with 5 Sub-Commands

The Sub-Menu is not available _1.jpg

Normaly i must have that in the end of the context menu : _3.jpg

I make a simple test like that : _4.jpg


why i can have more 17 link command in a ContextMenu?

I check many informations on internet unsuvcessfull!

find my script here and thank you in advance for some answers or solution

Code:
Windows Registry Editor Version 5.00

;                             Windows 7 Professionnel Service Pack 1

;===========================================================

;                                                Menu Contextuel

;===========================================================


;              ===================================
;                               Menu Perso
;              ===================================

;=========

;Menu Maitre

;=========

--> Bureau
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\TechWan2003_bur]
"MUIVerb"="TechWan2003"
"Icon"="%windir%\\system32\\LIB.DLL,7"
"Position"="Top"
"ExtendedSubCommandsKey"="Menu_Tech"

;--> Poste de travail
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\TechWan2003_Ord]
"MUIVerb"="TechWan2003"
"Icon"="%windir%\\system32\\LIB.DLL,7"
"Position"="Top"
"ExtendedSubCommandsKey"="Menu_Tech"


;===============================

;                   Menu_Tech

;Sous-Command & Sous-Menu Menu Maitre

;===============================

;Sous-Command 1 - Menu Maitre
;-------------------------------
[HKEY_CLASSES_ROOT\Menu_Tech\Shell\Cmd01]
"MUIVerb"="Ajout/Suppression de Programmes"
"Icon"="%windir%\\system32\\LIB.DLL,5"
@=""

[HKEY_CLASSES_ROOT\Menu_Tech\Shell\Cmd01\Command]
@="rundll32.exe shell32.dll,Control_RunDLL \"appwiz.cpl\""

;Sous-Command 2 - Menu Maitre
;-------------------------------
[HKEY_CLASSES_ROOT\Menu_Tech\Shell\Cmd02]
"MUIVerb"="Gestionnaire de périphériques"
"Icon"="%windir%\\system32\\LIB.DLL,1"
@=""

[HKEY_CLASSES_ROOT\Menu_Tech\Shell\Cmd02\Command]
@="c:\\windows\\system32\\mmc.exe /s c:\\windows\\system32\\DevMgmt.msc"

;Sous-Command 3 - Menu Maitre
;-------------------------------
[HKEY_CLASSES_ROOT\Menu_Tech\Shell\Cmd03]
"MUIVerb"="Gestionnaire des Disques"
;ligne de séparation vers le bas
;"CommandFlags"=dword:00000040
@=""

[HKEY_CLASSES_ROOT\Menu_Tech\Shell\Cmd03\Command]
@="c:\\windows\\system32\\mmc.exe /s c:\\windows\\system32\\diskmgmt.msc"

;Sous-Command 4 - Menu Maitre
;-------------------------------
[HKEY_CLASSES_ROOT\Menu_Tech\Shell\Cmd04]
"MUIVerb"="MSConfig - Utilitaire de configuration système"
;ligne de séparation vers le bas
;"CommandFlags"=dword:00000040

[HKEY_CLASSES_ROOT\Menu_Tech\Shell\Cmd04\Command]
@="c:\\Windows\\System32\\msconfig.exe"

;Sous-Command 5 - Menu Maitre
;-------------------------------
[HKEY_CLASSES_ROOT\Menu_Tech\Shell\Cmd05]
"MUIVerb"="Panneau de Configuration"
"Icon"="%windir%\\system32\\LIB.DLL,3"
@=""

[HKEY_CLASSES_ROOT\Menu_Tech\Shell\Cmd05\Command]
@="rundll32.exe shell32.dll,Control_RunDLL"

;Sous-Command 6 - Menu Maitre
;-------------------------------
[HKEY_CLASSES_ROOT\Menu_Tech\Shell\Cmd06]
"MUIVerb"="Console Services"

[HKEY_CLASSES_ROOT\Menu_Tech\Shell\Cmd06\Command]
@="c:\\windows\\system32\\mmc.exe /s c:\\windows\\system32\\services.msc"

;Sous-Command 7 - Menu Maitre
;-------------------------------
;Arrêter le Système
[HKEY_CLASSES_ROOT\Menu_Tech\Shell\Cmd07]
"MUIVerb"="[Arrêter 5'']"
"Icon"="%windir%\\system32\\LIB.DLL,2"

[HKEY_CLASSES_ROOT\Menu_Tech\Shell\Cmd07\Command]
@="shutdown -s -f -t 5"

;Sous-Command 8 - Menu Maitre
;-------------------------------
;Redémarrer
[HKEY_CLASSES_ROOT\Menu_Tech\Shell\Cmd08]
"MUIVerb"="[Redémarrer  5'']"
"Icon"="%windir%\\system32\\LIB.DLL,6"

[HKEY_CLASSES_ROOT\Menu_Tech\Shell\Cmd08\Command]
@="shutdown -r -f -t 5"

;Sous-Command 9 - Menu Maitre
;-------------------------------
;Fermer la Session
[HKEY_CLASSES_ROOT\Menu_Tech\Shell\Cmd09]
"MUIVerb"="[Fermer la Session  5'']"
"Icon"="%windir%\\system32\\LIB.DLL,0"

[HKEY_CLASSES_ROOT\Menu_Tech\Shell\Cmd09\Command]
@="shutdown -l -f -t 5"

;Sous-Command 10 - Menu Maitre
;-------------------------------
;Outils d'Administration
[HKEY_CLASSES_ROOT\Menu_Tech\Shell\Cmd10]
"MUIVerb"="Outils d'Administration"
"Icon"="%windir%\\system32\\LIB.DLL,0"

[HKEY_CLASSES_ROOT\Menu_Tech\Shell\Cmd10\Command]
@="control admintools"

;Sous-Command 11 - Menu Maitre
;-------------------------------
;Gestionnaire des Tâches
[HKEY_CLASSES_ROOT\Menu_Tech\Shell\Cmd11]
"MUIVerb"="Gestionnaire des Tâches"
"Icon"="%windir%\\system32\\LIB.DLL,0"

[HKEY_CLASSES_ROOT\Menu_Tech\Shell\Cmd11\Command]
@="taskmgr"

;Sous-Command 12 - Menu Maitre
;-------------------------------
;Diagnostic de mémoire Windows
[HKEY_CLASSES_ROOT\Menu_Tech\Shell\Cmd12]
"MUIVerb"="Diagnostic de mémoire Windows"
"Icon"="%windir%\\system32\\LIB.DLL,0"

[HKEY_CLASSES_ROOT\Menu_Tech\Shell\Cmd12\Command]
@="mdsched"

;Sous-Command 13 - Menu Maitre
;-------------------------------
;Gestionnaire des Tâches Planifiées
[HKEY_CLASSES_ROOT\Menu_Tech\Shell\Cmd13]
"MUIVerb"="Gestionnaire des Tâches Planifiées"
"Icon"="%windir%\\system32\\LIB.DLL,0"

[HKEY_CLASSES_ROOT\Menu_Tech\Shell\Cmd13\Command]
@="c:\\windows\\system32\\mmc.exe /s c:\\windows\\system32\\taskschd.msc"

;Sous-Command 14 - Menu Maitre
;-------------------------------
;Centre Réseau et Partage
[HKEY_CLASSES_ROOT\Menu_Tech\Shell\Cmd14]
"MUIVerb"="Centre Réseau et Partage"
"Icon"="%windir%\\system32\\LIB.DLL,0"

[HKEY_CLASSES_ROOT\Menu_Tech\Shell\Cmd14\Command]
@="c:\\windows\\system32\\control.exe /name microsoft.networkandsharingcenter"

;Sous-Command 15 - Menu Maitre
;-------------------------------
[HKEY_CLASSES_ROOT\Menu_Tech\Shell\Cmd15]
"MUIVerb"="Cartes Réseaux - NIC"
"Icon"="%windir%\\system32\\LIB.DLL,5"
@=""

[HKEY_CLASSES_ROOT\Menu_Tech\Shell\Cmd15\Command]
@="rundll32.exe shell32.dll,Control_RunDLL \"ncpa.cpl\""

;Sous-Command 16 - Menu Maitre
;-------------------------------
[HKEY_CLASSES_ROOT\Menu_Tech\Shell\Cmd16]
"MUIVerb"="Vider le chache [IPConfig FlushDNS]"

[HKEY_CLASSES_ROOT\Menu_Tech\Shell\Cmd16\Command]
@="C:\\windows\\system32\\cmd.exe /k ipconfig /flushdns"

;Sous-Command 17 - Menu Maitre
;-------------------------------
[HKEY_CLASSES_ROOT\Menu_Tech\Shell\Cmd17]
"MUIVerb"="1 - Réinitialiser IP NIC"

[HKEY_CLASSES_ROOT\Menu_Tech\Shell\Cmd17\Command]
@="C:\\windows\\system32\\cmd.exe /k ipconfig /Release"

;Sous-Command 18 - Menu Maitre
;-------------------------------
[HKEY_CLASSES_ROOT\Menu_Tech\Shell\Cmd18]
"MUIVerb"="2 - Renouvellement IP NIC"

[HKEY_CLASSES_ROOT\Menu_Tech\Shell\Cmd18\Command]
@="C:\\windows\\system32\\cmd.exe /k ipconfig /Renew"




;Sous-Menu 1 - Maitre
;---------------------
[HKEY_CLASSES_ROOT\Menu_Tech\Shell\Menu1]
"MUIVerb"="MMC"
"ExtendedSubCommandsKey"="Menu_Tech.SMenu1"


;==================================

;                 Menu_Tech.SMenu1

;Sous-Command & Sous-Menu - Sous-Menu 1

;===================================

;Sous-Command 1 - Sous-Menu 1
;-------------------------------
;Stratégie de Groupe
[HKEY_CLASSES_ROOT\Menu_Tech.SMenu1\Shell\SM1]
"MUIVerb"="Stratégie de Groupe"
@=""

[HKEY_CLASSES_ROOT\Menu_Tech.SMenu1\Shell\SM1\Command]
@="c:\\windows\\system32\\mmc.exe /s c:\\windows\\system32\\gpedit.msc"

;Sous-Command 2 - Sous-Menu 1
;-------------------------------
;Gestion de l'ordinateur
[HKEY_CLASSES_ROOT\Menu_Tech.SMenu1\Shell\SM2]
"MUIVerb"="Gestion de l'ordinateur"
@=""

[HKEY_CLASSES_ROOT\Menu_Tech.SMenu1\Shell\SM2\Command]
@="c:\\windows\\system32\\mmc.exe /s c:\\windows\\system32\\Compmgmt.msc"

;Sous-Command 3 - Sous-Menu 1
;-------------------------------
;Utilisateurs et Groupes Locaux
[HKEY_CLASSES_ROOT\Menu_Tech.SMenu1\Shell\SM3]
"MUIVerb"="Utilisateurs et Groupes Locaux"
@=""

[HKEY_CLASSES_ROOT\Menu_Tech.SMenu1\Shell\SM3\Command]
@="c:\\windows\\system32\\mmc.exe /s c:\\windows\\system32\\lusrmgr.msc"

;Sous-Command 4 - Sous-Menu 1
;-------------------------------
;Gestion des Disques
[HKEY_CLASSES_ROOT\Menu_Tech.SMenu1\Shell\SM4]
"MUIVerb"="Gestion des Disques"
@=""

[HKEY_CLASSES_ROOT\Menu_Tech.SMenu1\Shell\SM4\Command]
@="c:\\windows\\system32\\mmc.exe /s c:\\windows\\system32\\diskmgmt.msc"

;Sous-Command 5 - Sous-Menu 1
;-------------------------------
;Observateur des Evénements
[HKEY_CLASSES_ROOT\Menu_Tech.SMenu1\Shell\SM5]
"MUIVerb"="Observateur des Evénements"
@=""

[HKEY_CLASSES_ROOT\Menu_Tech.SMenu1\Shell\SM5\Command]
@="c:\\windows\\system32\\mmc.exe /s c:\\windows\\system32\\eventvwr.msc"



;              ===================================
;                               Menu Perso
;              ===================================

Thank you in advance ...
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
build
OS
windows 7 x64
CPU
i7
Motherboard
asus
Memory
16
Graphics Card(s)
nvidia
Hard Drives
ssd
Antivirus
kaspersky
Browser
chrome
Hi taratata2014, welcome to 7F! :)
My apologies that no one has answered your query sooner.


If I understand you correctly, you need to see more than 17 items in your context menu(s).
why i can have more 17 link command in a ContextMenu?
I believe you meant to say how can I instead of why. La syntaxe est toujours le fléau de translation. Eh?

The reason you can not is because Microsoft (MS) wanted to use a solution that would avoid accidental commands if more than 15 files were available at one time.

This link: Context menus are shortened when more than 15 files are selected will explain and offer a possible fix. If the registry key - MultipleInvokePromptMinimum - does not exist at - HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer - you will have to create it.
This link offers a more visual way and a batch file to do that: [FIX] Open, Edit and Print Context Menu Items Missing in Windows 7 When 15+ Files Selected - AskVG

It should be noted that if you want more than the 18 Sub-Commands and 1 Sub Menu with 5 Sub-Commands for a total of (18+1+5 = (24)) you would need to set the MultipleInvokePromptMinimum value to at least 24 instead of the 16 mentioned in the Context menus are shortened when more than 15 files are selected article.

   Note
Note: a value of 16 is interpreted as "unlimited" for showing the options from the context menu, however it does not allow the actual opening of the documents selected if selecting more than 16.

To allow the opening of more than 16 documents, set this key to a decimal value greater than the amount of documents you wish to open. Microsoft recommends only increasing this value to a reasonable number in a controlled environment and only where users really need this value increased.
So 24 would have to be 25.

From the work you show in the code box you seem to be comfortable with working with the registry still, some caution is advised, see: http://www.sevenforums.com/tutorials/4230-registry-backup-restore.html, and if you do a lot of work with the registry this link may be helpful: http://www.sevenforums.com/tutorials/202695-new-registry-file-add-context-menu.html. 25 would have to be 26. :geek:

In case there was a difference, I took the liberty to translate the HKCU Key from English to the French I saw in your code box, but the difference is minimal.
Code:
HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer
Nom: MultipleInvokePromptMinimum 
Type: DWORD 
Par défaut: 15 (décimal)
Once you make the change, a restart of your machine is advised.

More on menu handlers: Creating Shortcut Menu Handlers (Windows)
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Gateway DX4831-01e (Mid-Tower Desktop)
OS
Originally Win 7 Hm Prem x64 Ver 6.1.7600 Build 7601-SP1 | Upgraded to Windows 10 December 14, 2019
CPU
Intel i3 530 2.93GHz, 2933MHz 2 Cores 4 Logical Processors
Motherboard
Gateway H57M01 133 megahertz
Memory
6GB of 1,333MHz DDR3 SDRAM
Graphics Card(s)
32MB Intel Graphics Media Accelerator HD IGChip
Sound Card
Realtek High Definition Audio
Monitor(s) Displays
Gateway HX2000 20inch TFT active matrix TN
Screen Resolution
1600 x 900 x 59 hertz
Hard Drives
WDC WD10EADS-00M2B0 [HDD] (1000.20 GB) -- drive 0,
HL-DT-ST DVDRAM GH41N [CD-ROM dr]
Four card readers, and Four USB 2.0
PSU
300watts.
Case
Mid-Tower Desktop
Cooling
Stock from Gateway
Keyboard
Natural Ergonomic Keyboard 4000, see Other Info
Mouse
Orig. Gateway wore out now using Insignia USB wired optical
Internet Speed
Vz FIOS 10ms png 57.64Mbps down 65.53Mbps up Speedtest.org
Antivirus
Zamana Anti-logger with Anti-malware, MSE, Windows Firewall,
Browser
IE11.0.9600.19399-Upd ver11.0.135, Firefox 68.0.1 x64
Other Info
System Specs by Belarc.

BIOS: American Megatrends Inc. P01-A0 11/17/2009

Replaced the MS 'Natural' Standard PS/2 Enhanced 101-102 Keyboard with a new Natural Ergonomic Keyboard 4000 on August 1st 2014.

Canon Pixma MG3222 Printer.

Updated to IE11 on 12102015 | Fios Quantum Router g1100

Additional AV: SpywareBlaster, manual Mbam, SAS
Back
Top