Skip to content

Instantly share code, notes, and snippets.

@fellypsantos
Forked from hamzahamidi/open-cmder-here.md
Created May 6, 2020 04:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fellypsantos/3f4d8ac87967fcf0e2c72cf48a797e8a to your computer and use it in GitHub Desktop.
Save fellypsantos/3f4d8ac87967fcf0e2c72cf48a797e8a to your computer and use it in GitHub Desktop.
"Open Cmder Here" in context menu

"Open Cmder Here" in context menu

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.

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