Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Cmder Context (Right-Click) Menu for Windows 7, 8 & 10
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder]
[-HKEY_CLASSES_ROOT\Directory\shell\Cmder]
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder]
@="Open Cmder Here"
"Icon"="C:\\tools\\cmder\\Cmder.exe,0"
[HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder\command]
@="\"C:\\tools\\cmder\\Cmder.exe\" \"%V\""
[HKEY_CLASSES_ROOT\Directory\shell\Cmder]
@="Open Cmder Here"
"Icon"="C:\\tools\\cmder\\Cmder.exe,0"
[HKEY_CLASSES_ROOT\Directory\shell\Cmder\command]
@="\"C:\\tools\\cmder\\Cmder.exe\" \"%1\""
@jojobyte

This comment has been minimized.

Copy link
Owner Author

jojobyte commented Jul 11, 2014

Cmder is a marvelous Command Prompt Replacement for windows, found at https://github.com/bliker/cmder

These files will either enable or disable context menus for it.

Make sure you replace C:\tools\cmder\Cmder.exe in the Enable file with your path to Cmder.exe

@MichalZalecki

This comment has been minimized.

Copy link

MichalZalecki commented Jan 5, 2015

Cool! Thanks!

@FrankPeters

This comment has been minimized.

Copy link

FrankPeters commented Apr 1, 2015

Awesome thanks! 👍

@rofrol

This comment has been minimized.

Copy link

rofrol commented Jul 31, 2015

Shortcut to open Cmder in a chosen folder

Execute .\cmder.exe /REGISTER ALL
If you get a message "Access Denied" ensure you are executing the command in an Administrator prompt.

https://github.com/bliker/cmder

@jcppython

This comment has been minimized.

Copy link

jcppython commented Aug 12, 2015

Good!

@sekti92

This comment has been minimized.

Copy link

sekti92 commented Dec 4, 2015

thank you sir, worked perfectly on Windows 10

@EnixCoda

This comment has been minimized.

Copy link

EnixCoda commented Mar 31, 2016

Awesome!!

@BrainCrumbz

This comment has been minimized.

Copy link

BrainCrumbz commented May 13, 2016

Thanks! Added "Extended"="" under both top nodes to show them only with Shift+Right click ... folder context menu is so crowded these days! 😄

@JordashTalon

This comment has been minimized.

Copy link

JordashTalon commented Jun 23, 2016

Thanks man! this is awesome, miss being your home teacher!

@nelreina

This comment has been minimized.

Copy link

nelreina commented Sep 29, 2016

Awesome!!

@Drache93

This comment has been minimized.

Copy link

Drache93 commented Oct 26, 2016

Thanks for the help!

Just so anyone knows (i had this issue), if the above fix doesn't work and you find Cmder is always opening to your home directory, that's because it is set to in the Settings by default.

  1. In Settings -> Startup -> Tasks, select your default Task (probably cmd::Cmder - check or change in Settings -> Startup)
  2. It will look something like this cmd /k "%ConEmuDir%\..\init.bat" -new_console:d:%USERPROFILE%
  3. Remove the portion :d:%USERPROFILE% <- Note the colon before d
  4. Result should be: cmd /k "%ConEmuDir%\..\init.bat" -new_console
  5. This will stop new tasks/command tabs from defaulting to your home directory.
@taisang1996

This comment has been minimized.

Copy link

taisang1996 commented Feb 10, 2017

Thank you!

@alpap

This comment has been minimized.

Copy link

alpap commented May 19, 2017

Thanks worked perfectly

@tmdevde

This comment has been minimized.

Copy link

tmdevde commented Jul 4, 2017

Perfect thank you!

@rodolfocop

This comment has been minimized.

Copy link

rodolfocop commented Jul 12, 2017

Thanks man!

@nosnaj

This comment has been minimized.

Copy link

nosnaj commented Jul 13, 2017

Googled cmder context menu and this came up top! Thanks for this! (Even though title says Win 7/8, tested and works on Win 10)

@aetheryx

This comment has been minimized.

Copy link

aetheryx commented Jul 29, 2017

^ Same - worked like a charm on Win10.
For anyone else like me, you're just supposed to run the files. I didn't know what to do at first :>

@erlangp

This comment has been minimized.

Copy link

erlangp commented Aug 8, 2017

Thanks!

@Cppowboy

This comment has been minimized.

Copy link

Cppowboy commented Aug 13, 2017

Thank you!

@XingdaLee

This comment has been minimized.

Copy link

XingdaLee commented Aug 25, 2017

Shortcut to open Cmder in a chosen folder

Open a terminal as an Administrator
Navigate to the directory you have placed Cmder
Execute .\cmder.exe /REGISTER ALL If you get a message "Access Denied" ensure you are executing the command in an Administrator prompt.
In a file explorer window right click in or on a directory to see "Cmder Here" in the context menu.

@ashishtyagi10

This comment has been minimized.

Copy link

ashishtyagi10 commented Oct 14, 2017

Thank you work like charm.

@JDtheDev

This comment has been minimized.

Copy link

JDtheDev commented Oct 14, 2017

Worked on a Win7 x64 machine, thanks

@mlaopane

This comment has been minimized.

Copy link

mlaopane commented Oct 19, 2017

Works like a charm !
Thanks ;)

@nestorcolt

This comment has been minimized.

Copy link

nestorcolt commented Dec 13, 2017

i figure out, thanks this is awesome :)

@mact35

This comment has been minimized.

Copy link

mact35 commented Dec 24, 2017

Thanks!

@vdonchev

This comment has been minimized.

Copy link

vdonchev commented Feb 3, 2018

Great - it works on Win10\64 - cmder 1.3.4
Thank you!

@rubinhos

This comment has been minimized.

Copy link

rubinhos commented Feb 7, 2018

Nice! Thanks man.

@RazZ-Naix

This comment has been minimized.

Copy link

RazZ-Naix commented Feb 21, 2018

Thanks!

@prail

This comment has been minimized.

Copy link

prail commented Mar 7, 2018

Awesome. Cmder was getting annoying.

@brn-andrade

This comment has been minimized.

Copy link

brn-andrade commented Mar 27, 2018

Thank you!

@sosrobirowo

This comment has been minimized.

Copy link

sosrobirowo commented Jun 4, 2018

Awesome! Thank you!

@jp9573

This comment has been minimized.

Copy link

jp9573 commented Jul 7, 2018

No need to do anything like this! Simply we can add Cmder and it will open at our particular path from where we open it.!

You can go to Settings > Integration and set this in the command field (upper section).

{bash} -cur_console:n:d:"%V"
%V is used to pass the current directory you are in.

After that, you just need to hit the Register button in the upper section.
image

@devt3000

This comment has been minimized.

Copy link

devt3000 commented Jul 11, 2018

@jp9573 What if I want to use the cmd shell?

Got it, used {Cmder} -cur_console:n:d:"%V"

@MRdevX

This comment has been minimized.

Copy link

MRdevX commented Jul 24, 2018

Thanks, Works on Windows 10.

@nebularnoise

This comment has been minimized.

Copy link

nebularnoise commented Aug 21, 2018

Awesome

@goxr3plus

This comment has been minimized.

Copy link

goxr3plus commented Aug 24, 2018

Awesome !!!!!!!

@chriswiduta

This comment has been minimized.

Copy link

chriswiduta commented Sep 20, 2018

No need to do anything like this! Simply we can add Cmder and it will open at our particular path from where we open it.!

You can go to Settings > Integration and set this in the command field (upper section).

{bash} -cur_console:n:d:"%V"
%V is used to pass the current directory you are in.

After that, you just need to hit the Register button in the upper section.
image

How would I go about creating an Cmder as Admin session started in the right click option menu?

@cruzelante098

This comment has been minimized.

Copy link

cruzelante098 commented Oct 26, 2018

Thanks for the help!

Just so anyone knows (i had this issue), if the above fix doesn't work and you find Cmder is always opening to your home directory, that's because it is set to in the Settings by default.

  1. In Settings -> Startup -> Tasks, select your default Task (probably cmd::Cmder - check or change in Settings -> Startup)
  2. It will look something like this cmd /k "%ConEmuDir%\..\init.bat" -new_console:d:%USERPROFILE%
  3. Remove the portion :d:%USERPROFILE% <- Note the colon before d
  4. Result should be: cmd /k "%ConEmuDir%\..\init.bat" -new_console
  5. This will stop new tasks/command tabs from defaulting to your home directory.

Thanks!

@Koolstr

This comment has been minimized.

Copy link

Koolstr commented Nov 13, 2018

For anybody else still having this problem, here's the clear steps which got it to work as intended for me. With this, Cmder is in the context menu, opens as a new tab instead of new window, opens correctly to the selected directory that was right clicked in, and opens the correct console task.

- Add Cmder to the context menu:
In Cmder install directory (default is C;/tools/), run "cmder.exe /REGISTER ALL" in Command Prompt

- Patch context menu to open in single window:
In RegEdit, in "Computer\HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder\command", change to "C:\tools\Cmder\Cmder.exe" /SINGLE "%V" (Setting Single Instance Mode in Cmder Settings doesn't seem to be working)

- Create Default Task with Desired Console:
For me, ConEmu is too slow to load, so I set the default to the regular Command Prompt. Here's how:

  1. Cmder Settings -> Startup -> Tasks -> +. Set as Default task for new console (and default shell if desired).
  2. Add as a Command, the path to standard CMD, which is "C:\Windows\System32\cmd.exe". Alternatively, add this dynamically using the "File path..." button. Save settings.
  3. If you get a popup, choose the new task, and leave the default directory blank (this way, opening from the context menu opens in the selected directory. If you want a default directory, create a separate, non-default task).

- Set Default Task to New Task:
This is the step that will most often be forgotten. Go to Cmder Settings -> Startup. Set Specified named task to your new default.

That's it! It should all work as intended now. Honestly, the need for such a convoluted workaround is ridiculous. Why has context menu integration not been added as a UI toggle, and why must the means for setting new tabs instead of windows, the default task, and opening in the right directory, be so convoluted?

@digeomel

This comment has been minimized.

Copy link

digeomel commented Jan 7, 2019

I'm using bash and I wanted to re-use my existing cmder window. What did it for me, after @jp9573 's answer, is this:
-reuse -run {bash} -cur_console:n:d:"%v"

@thucminhpham

This comment has been minimized.

Copy link

thucminhpham commented Feb 28, 2019

this change in setting from
chriswiduta blog works for win7

{bash} -cur_console:n:d:"%V"

thank so much
cheers

@chrisblacea

This comment has been minimized.

Copy link

chrisblacea commented Jun 24, 2019

image

Help please?

@jojobyte

This comment has been minimized.

Copy link
Owner Author

jojobyte commented Jun 24, 2019

image

Help please?

Remove the space maybe?

@chrisblacea

This comment has been minimized.

Copy link

chrisblacea commented Jun 24, 2019

Im good now. Thanks! :)

@erikhenriq

This comment has been minimized.

Copy link

erikhenriq commented Jun 29, 2019

Very much thanks fellow!

@kxdang

This comment has been minimized.

Copy link

kxdang commented Jul 26, 2019

Thank you very much! worked perfectly!

@MatinHz

This comment has been minimized.

Copy link

MatinHz commented Jul 29, 2019

Thanks!

@svaneg11

This comment has been minimized.

Copy link

svaneg11 commented Aug 8, 2019

Worked great, thanks!

@elVengador

This comment has been minimized.

Copy link

elVengador commented Aug 16, 2019

Thanks .*)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.