Skip to content

Instantly share code, notes, and snippets.

@hamzahamidi
Last active April 18, 2026 18:04
Show Gist options
  • Select an option

  • Save hamzahamidi/ce00cdc5895480b9d538093bdeda4334 to your computer and use it in GitHub Desktop.

Select an option

Save hamzahamidi/ce00cdc5895480b9d538093bdeda4334 to your computer and use it in GitHub Desktop.
"Open Cmder Here" in context menu

"Open Cmder Here" in context menu

Edit 04/2021:

As of the lastest versions, just execute the following command .\cmder.exe /REGISTER ALL per Documentation.

Original Solution

To add an entry in the Windows Explorer context menu to open Cmder in a specific directory, paste this into a OpenCmderHere.reg file and double-click to install it.

    Windows Registry Editor Version 5.00

    [HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder]
    @="Open Cmder Here"
    "Icon"="\"%CMDER_ROOT%\\icons\\cmder.ico\",0"

    [HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder\command]
    @="\"%CMDER_ROOT%\\Cmder.exe\" /START \"%v\""

Then add the Environment variable CMDER_ROOT to point to the path of your installation.

System Settings Environment Variable

After adding this, a restart of the explorer might be required to make it work.

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

@omasseau
Copy link
Copy Markdown

omasseau commented Apr 5, 2023

Installing the entry works well, but the problem it that each time I launch "Cmder here" it asks me for the admin username and password. So it seems it always try to launch cmder with admin access.

Here is the command it tries to launch :

image

Notice the /ADMIN

I fixed it by selecting "Specifed name task" (I previously add it on "Auto save/restore opened tabs").
Then I relaunched Cmdr and set it back to "Auto save/restore opened tabs" :

image

I guess it tried to restore a tab that was opened in admin mode before I added the context menu entry.

@ZhaoYitong
Copy link
Copy Markdown

@viclafouch just read carefully the steps. If you got this error that's just mean you re not running cmder in administrator mode.

Thank u, bro

@ChrysJ
Copy link
Copy Markdown

ChrysJ commented Nov 26, 2023

It works! Thanks a lot

@iamtheasad
Copy link
Copy Markdown

iamtheasad commented Feb 23, 2024

.\cmder.exe /REGISTER ALL just copy and paste these code on cmder before that you need to open cmder as administrator mode that's it.

@Alaayt
Copy link
Copy Markdown

Alaayt commented Jun 14, 2024

HKEY_CLASSES_ROOT
└─ Directory
└─ Background
└─ shell
└─ Open Cmder Here
└─ command
└─ (Default) = "C:\path\to\Cmder.exe" <=== The location of the application if it is in C\ or another place

@Desert87
Copy link
Copy Markdown

This video to solve problem of "failed to copy vendor/conemu-maximus5"

https://youtu.be/C8xA06QiJf4?si=NOxgqnIcUH-jm-DD

@Desert87
Copy link
Copy Markdown

This video to solve problem of "failed to copy vendor/conemu-maximus5"

https://youtu.be/C8xA06QiJf4?si=NOxgqnIcUH-jm-DD

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