Skip to content

Instantly share code, notes, and snippets.

@Hawkuro
Created January 12, 2017 16:33
Show Gist options
  • Save Hawkuro/1fb59582b0bda6fc5535a98994e8dea4 to your computer and use it in GitHub Desktop.
Save Hawkuro/1fb59582b0bda6fc5535a98994e8dea4 to your computer and use it in GitHub Desktop.
Registry files to enable Cmder submenus in Explorer context menu
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]
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\""
@IllyaMoskvin
Copy link

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:

  1. The admin commands have been moved from the Admin namespace to the namespace of their respective shell,
    e.g. Admin::PowerShell as Admin to PowerShell::PowerShell as Admin.
  2. The shell icons are no longer provided in the icons directory.
    You can use the C:\\path\\to\\shell.exe,0 convention 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.bat threw an error when trying to open a directory whose path contains spaces. This can be corrected by putting %~2 in quotes. Here's the updated code:

@echo off
set CMDER_ROOT=%~dp0
start %CMDER_ROOT%\vendor\conemu-maximus5\ConEmu.exe /icon "%CMDER_ROOT%\cmder.exe" /title Cmder /loadcfgfile "%CMDER_ROOT%\vendor\conemu-maximus5\ConEmu.xml" /run "{%~1}" -new_console:d:"%~2" /k "%CMDER_ROOT%\vendor\init.bat"

Here's an updated cmder_context_enable.reg, which seems to be working fine with an out-of-the-box install of Cmder:

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::Cmder\" \"%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::Cmder\" \"%V\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.ps]
@="PowerShell"
"Icon"="C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe,0"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.ps\command]
@="\"C:\\cmder\\CmderTask.bat\" \"PowerShell::PowerShell\" \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.ps.bg]
@="PowerShell"
"Icon"="C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe,0"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.ps.bg\command]
@="\"C:\\cmder\\CmderTask.bat\" \"PowerShell::PowerShell\" \"%V\""


[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.gb]
@="git-bash"
"Icon"="C:\\cmder\\vendor\\git-for-windows\\git-bash.exe,0"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.gb\command]
@="\"C:\\cmder\\CmderTask.bat\" \"bash::bash\" \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.gb.bg]
@="git-bash"
"Icon"="C:\\cmder\\vendor\\git-for-windows\\git-bash.exe,0"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.gb.bg\command]
@="\"C:\\cmder\\CmderTask.bat\" \"bash::bash\" \"%V\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.mt]
@="mintty"
"Icon"="C:\\cmder\\vendor\\git-for-windows\\git-bash.exe,0"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.mt\command]
@="\"C:\\cmder\\CmderTask.bat\" \"bash::mintty\" \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.mt.bg]
@="mintty"
"Icon"="C:\\cmder\\vendor\\git-for-windows\\git-bash.exe,0"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.mt.bg\command]
@="\"C:\\cmder\\CmderTask.bat\" \"bash::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\" \"cmd::Cmder 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\" \"cmd::Cmder as Admin\" \"%V\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.ps.admin]
@="PowerShell as Admin"
"Icon"="C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe,0"
"HasLUAShield"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.ps.admin\command]
@="\"C:\\cmder\\CmderTask.bat\" \"PowerShell::PowerShell as Admin\" \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.ps.admin.bg]
@="PowerShell as Admin"
"Icon"="C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe,0"
"HasLUAShield"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.ps.admin.bg\command]
@="\"C:\\cmder\\CmderTask.bat\" \"PowerShell::PowerShell as Admin\" \"%V\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.gb.admin]
@="git-bash as Admin"
"Icon"="C:\\cmder\\vendor\\git-for-windows\\git-bash.exe,0"
"HasLUAShield"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.gb.admin\command]
@="\"C:\\cmder\\CmderTask.bat\" \"bash::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\\vendor\\git-for-windows\\git-bash.exe,0"
"HasLUAShield"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.gb.admin.bg\command]
@="\"C:\\cmder\\CmderTask.bat\" \"bash::bash as Admin\" \"%V\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.mt.admin]
@="mintty as Admin"
"Icon"="C:\\cmder\\vendor\\git-for-windows\\git-bash.exe,0"
"HasLUAShield"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.mt.admin\command]
@="\"C:\\cmder\\CmderTask.bat\" \"bash::mintty as Admin\" \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.mt.admin.bg]
@="mintty as Admin"
"Icon"="C:\\cmder\\vendor\\git-for-windows\\git-bash.exe,0"
"HasLUAShield"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.mt.admin.bg\command]
@="\"C:\\cmder\\CmderTask.bat\" \"bash::mintty as Admin\" \"%V\""

Replace C:\\cmder with Cmder's actual location.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment