Does anyone have a better command Arguments to open Command Prompt as admin here directly because with this it's just opened in system32 and not here in a folder ? Open++ https://download.cnet.com/open-64-bit/3000-2094_4-75157393.html In OpenXX.ini: Code: 1.Type=0 1.AssociateWith=0 1.Title="Open Command Prompt here (Admin)" 1.Program="powershell.exe" 1.Arguments="-Command "Start-Process cmd -ArgumentList '/s,/c,cmd.exe' -Verb RunAs" 1.WorkingDir="" 1.Icon="C:\Softs'Ium\Shell\icons\cmd_admin.ico,0" 1.FileTypes=""
because with this command in open++ it's just opened in system32 and not here in a folder If not with this it's good with Shift+right-click: Spoiler Code: ;========================================== Menu contextuel avancé (Shift + clic droit) ========================================== ;========================================== Cmd Admin ========================================== ; Adds "Open Command Prompt here (in admin)" into the Advanced Pop-up menu (shift+ right-click) ; The command runs directly without displaying PowerShell [HKEY_CLASSES_ROOT\Directory\background\shell\OpenCmdHereAsAdmin] @="Open Command prompt here (admin)" "Icon"="C:\\Softs'Ium\\Shell\\icons\\cmd_admin.ico" "Extended"="" [HKEY_CLASSES_ROOT\Directory\background\shell\OpenCmdHereAsAdmin\command] @="cmd /c echo|set/p=\"%V\"|powershell -NoP -W 1 -NonI -NoL \"SaPs 'cmd' -Args '/c \"\"\"cd /d',$([char]34+$Input+[char]34),'^&^& start /b cmd.exe\"\"\"' -Verb RunAs\"" ; ======================== ; On the file itself (right click on a case) ; ======================== [HKEY_CLASSES_ROOT\Directory\shell\OpenCmdHereAsAdmin] @="Open Command Prompt on this folder(admin)" "Icon"="C:\\Softs'Ium\\Shell\\icons\\cmd_admin.ico" [HKEY_CLASSES_ROOT\Directory\shell\OpenCmdHereAsAdmin\command] @="cmd /c echo|set/p=\"%L\"|powershell -NoP -W 1 -NonI -NoL \"SaPs 'cmd' -Args '/c \"\"\"cd /d',$([char]34+$Input+[char]34),'^&^& start /b cmd.exe\"\"\"' -Verb RunAs\""
You don't need powershell for built-in Explorer shell Spoiler Code: Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Drive\shell\MenuCmd] "MUIVerb"="@shell32.dll,-37444" "Icon"="cmd.exe" "ExtendedSubCommandsKey"="Directory\\ContextMenus\\MenuCmd" "Extended"="" [HKEY_CLASSES_ROOT\Directory\shell\MenuCmd] "MUIVerb"="@shell32.dll,-37444" "Icon"="cmd.exe" "ExtendedSubCommandsKey"="Directory\\ContextMenus\\MenuCmd" "Extended"="" [HKEY_CLASSES_ROOT\Directory\background\shell\MenuCmd] "MUIVerb"="@shell32.dll,-37444" "Icon"="cmd.exe" "ExtendedSubCommandsKey"="Directory\\ContextMenus\\MenuCmd" "Extended"="" [HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuCmd\shell\runas] "MUIVerb"="@shell32.dll,-37444" "Icon"="cmd.exe" "HasLUAShield"="" [HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuCmd\shell\runas\command] @="cmd.exe /s /k pushd \"%V\"" if you are on win7, replace 37444 with 22022
Thanks , It's for Win 10 LTSC 2021, will it be the same ? It is not possible without the submenu " ExtendedSubCommandsKey"
Yes, 37444 is for Win8 and later the submenu is better https://learn.microsoft.com/en-us/a...ere-shift-right-click-context-menu-experience