Created
January 12, 2017 16:33
-
-
Save Hawkuro/1fb59582b0bda6fc5535a98994e8dea4 to your computer and use it in GitHub Desktop.
Registry files to enable Cmder submenus in Explorer context menu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Windows Registry Editor Version 5.00 | |
| [-HKEY_CLASSES_ROOT\Directory\Background\shell\cmder] | |
| [-HKEY_CLASSES_ROOT\Directory\shell\cmder] | |
| [-HKEY_CLASSES_ROOT\Directory\Background\shell\cmder.admin] | |
| [-HKEY_CLASSES_ROOT\Directory\shell\cmder.admin] | |
| [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.cmd] | |
| [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.cmd.bg] | |
| [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.ps] | |
| [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.ps.bg] | |
| [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.gb] | |
| [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.gb.bg] | |
| [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.mt] | |
| [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.mt.bg] | |
| [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.cmd.admin] | |
| [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.cmd.admin.bg] | |
| [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.ps.admin] | |
| [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.ps.admin.bg] | |
| [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.gb.admin] | |
| [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.gb.admin.bg] | |
| [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.mt.admin] | |
| [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.mt.admin.bg] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Windows Registry Editor Version 5.00 | |
| [HKEY_CLASSES_ROOT\Directory\Background\shell\cmder] | |
| "MUIVerb"="Open in Cmder" | |
| "SubCommands"="cmder.cmd.bg;cmder.ps.bg;cmder.gb.bg;cmder.mt.bg" | |
| "Icon"="C:\\cmder\\Cmder.exe,0" | |
| [HKEY_CLASSES_ROOT\Directory\shell\cmder] | |
| "MUIVerb"="Open in Cmder" | |
| "SubCommands"="cmder.cmd;cmder.ps;cmder.gb;cmder.mt" | |
| "Icon"="C:\\cmder\\Cmder.exe,0" | |
| [HKEY_CLASSES_ROOT\Directory\Background\shell\cmder.admin] | |
| "MUIVerb"="Open in Cmder as Admin" | |
| "SubCommands"="cmder.cmd.admin.bg;cmder.ps.admin.bg;cmder.gb.admin.bg;cmder.mt.admin.bg" | |
| "Icon"="C:\\cmder\\Cmder.exe,0" | |
| "HasLUAShield"="" | |
| [HKEY_CLASSES_ROOT\Directory\shell\cmder.admin] | |
| "MUIVerb"="Open in Cmder as Admin" | |
| "SubCommands"="cmder.cmd.admin;cmder.ps.admin;cmder.gb.admin;cmder.mt.admin" | |
| "Icon"="C:\\cmder\\Cmder.exe,0" | |
| "HasLUAShield"="" | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.cmd] | |
| @="cmd" | |
| "Icon"="C:\\Windows\\System32\\cmd.exe,0" | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.cmd\command] | |
| @="\"C:\\cmder\\CmderTask.bat\" \"cmd\" \"%1\"" | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.cmd.bg] | |
| @="cmd" | |
| "Icon"="C:\\Windows\\System32\\cmd.exe,0" | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.cmd.bg\command] | |
| @="\"C:\\cmder\\CmderTask.bat\" \"cmd\" \"%V\"" | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.ps] | |
| @="PowerShell" | |
| "Icon"="C:\\cmder\\icons\\powershell.ico" | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.ps\command] | |
| @="\"C:\\cmder\\CmderTask.bat\" \"PowerShell\" \"%1\"" | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.ps.bg] | |
| @="PowerShell" | |
| "Icon"="C:\\cmder\\icons\\powershell.ico" | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.ps.bg\command] | |
| @="\"C:\\cmder\\CmderTask.bat\" \"PowerShell\" \"%V\"" | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.gb] | |
| @="git-bash" | |
| "Icon"="C:\\cmder\\icons\\git-bash.ico" | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.gb\command] | |
| @="\"C:\\cmder\\CmderTask.bat\" \"git-bash\" \"%1\"" | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.gb.bg] | |
| @="git-bash" | |
| "Icon"="C:\\cmder\\icons\\git-bash.ico" | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.gb.bg\command] | |
| @="\"C:\\cmder\\CmderTask.bat\" \"git-bash\" \"%V\"" | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.mt] | |
| @="mintty" | |
| "Icon"="C:\\cmder\\icons\\git-bash.ico" | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.mt\command] | |
| @="\"C:\\cmder\\CmderTask.bat\" \"mintty\" \"%1\"" | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.mt.bg] | |
| @="mintty" | |
| "Icon"="C:\\cmder\\icons\\git-bash.ico" | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.mt.bg\command] | |
| @="\"C:\\cmder\\CmderTask.bat\" \"mintty\" \"%V\"" | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.cmd.admin] | |
| @="cmd as Admin" | |
| "Icon"="C:\\Windows\\System32\\cmd.exe,0" | |
| "HasLUAShield"="" | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.cmd.admin\command] | |
| @="\"C:\\cmder\\CmderTask.bat\" \"Admin::cmd as Admin\" \"%1\"" | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.cmd.admin.bg] | |
| @="cmd as Admin" | |
| "Icon"="C:\\Windows\\System32\\cmd.exe,0" | |
| "HasLUAShield"="" | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.cmd.admin.bg\command] | |
| @="\"C:\\cmder\\CmderTask.bat\" \"Admin::cmd as Admin\" \"%V\"" | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.ps.admin] | |
| @="PowerShell as Admin" | |
| "Icon"="C:\\cmder\\icons\\powershell.ico" | |
| "HasLUAShield"="" | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.ps.admin\command] | |
| @="\"C:\\cmder\\CmderTask.bat\" \"Admin::PowerShell as Admin\" \"%1\"" | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.ps.admin.bg] | |
| @="PowerShell as Admin" | |
| "Icon"="C:\\cmder\\icons\\powershell.ico" | |
| "HasLUAShield"="" | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.ps.admin.bg\command] | |
| @="\"C:\\cmder\\CmderTask.bat\" \"Admin::PowerShell as Admin\" \"%V\"" | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.gb.admin] | |
| @="git-bash as Admin" | |
| "Icon"="C:\\cmder\\icons\\git-bash.ico" | |
| "HasLUAShield"="" | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.gb.admin\command] | |
| @="\"C:\\cmder\\CmderTask.bat\" \"Admin::git-bash as Admin\" \"%1\"" | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.gb.admin.bg] | |
| @="git-bash as Admin" | |
| "Icon"="C:\\cmder\\icons\\git-bash.ico" | |
| "HasLUAShield"="" | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.gb.admin.bg\command] | |
| @="\"C:\\cmder\\CmderTask.bat\" \"Admin::git-bash as Admin\" \"%V\"" | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.mt.admin] | |
| @="mintty as Admin" | |
| "Icon"="C:\\cmder\\icons\\git-bash.ico" | |
| "HasLUAShield"="" | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.mt.admin\command] | |
| @="\"C:\\cmder\\CmderTask.bat\" \"Admin::mintty as Admin\" \"%1\"" | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.mt.admin.bg] | |
| @="mintty as Admin" | |
| "Icon"="C:\\cmder\\icons\\git-bash.ico" | |
| "HasLUAShield"="" | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.mt.admin.bg\command] | |
| @="\"C:\\cmder\\CmderTask.bat\" \"Admin::mintty as Admin\" \"%V\"" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Having downloaded Cmder (v1.3.10) for the first time today, I think a few things have changed since since the time you put together your (excellent) tutorial, Cmder tasks in context menus. Here are some differences I've found when working with a fresh install:
Adminnamespace to the namespace of their respective shell,e.g.
Admin::PowerShell as AdmintoPowerShell::PowerShell as Admin.iconsdirectory.You can use the
C:\\path\\to\\shell.exe,0convention instead.Interestingly, I did not have to add
/dir %CD%to the task parameters. It was not present by default, but by some magic, everything worked just fine without it‽Lastly,
CmderTask.batthrew an error when trying to open a directory whose path contains spaces. This can be corrected by putting%~2in quotes. Here's the updated code:Here's an updated
cmder_context_enable.reg, which seems to be working fine with an out-of-the-box install of Cmder:Replace
C:\\cmderwith Cmder's actual location.