How to set up Cmder’sCmder Herecontext menu integration in Windows 10 Windows Explorer and launch Cmder in a new window with Windows PowerShell

Cmder’s Windows Explorer context menu option ‘Open Cmder Hereis handy to open cmder from Windows Explorer, whilst keeping the same path.  

We will also be changing Cmder’s default startup shell, from cmd to PowerShell.  

The following steps will enable the context menu in Windows 10, and ensures the current path in Windows Explorer will be used in Cmder:  

  1. Ensure the PowerShell task is correctly defined.
    Menu -> Settings -> Startup -> Tasks
    It should look like below

    Commands

    PowerShell -ExecutionPolicy Bypass -NoLogo -NoProfile -NoExit -Command "Invoke-Expression 'Import-Module ''%ConEmuDir%..profile.ps1'''"

    Task parameters

     /icon "%CMDER_ROOT%iconscmder.ico"

     

  2. Change Cmder’s Startup task to be PowerShell.

    Menu -> Settings -> Startup
    Cmder Startup Task

     

  3. Edit the registry as follows or use the registry editing file by skipping to step 4

    Start Registry Editor

    Win Sleutel + R -> regedit -> Click OK

    Show the Address bar in the Registry Editor if it is not already showing

    View -> Address Bar

     

    Add the first registry entry

    Registry Path: HKEY_CLASSES_ROOT\Directory\Background\shell

    Right click shell -> New -> Key

    Name the key cmder

    Edit the (verstek) string to Cmder Here

    Right click the new key cmder -> New -> String

    Name the new String Icon

    Open Icon and set the value as follows replacing {path to cmder} with your own path:

    {path to cmder}iconscmder.ico,0

     

    Add the second registry entry

    Registry Path: HKEY_CLASSES_ROOT\Directory\Background\shell\cmder

    Right click cmder -> New -> Key

    In command, set the value of Default, replacing {path to cmder} with your own path:

    {path to cmder}Cmder.exe" "%V"

     

    Add the third registry entry

    Registry Path: HKEY_CLASSES_ROOT\Directory\shell

    Right click shell -> New -> Key

    Name the key cmder

    Edit the (verstek) string to Cmder Here

    Right click the new key cmder -> New -> String

    Name the new String Icon

    Open Icon and set the value as follows replacing {path to cmder} with your own path:

    {path to cmder}iconscmder.ico,0

     

    Add the fourth registry entry

    Registry Path: HKEY_CLASSES_ROOT\Directory\shell\cmder

    Right click cmder -> New -> Key

    In command, set the value of Default, replacing {path to cmder} with your own path:

    {path to cmder}Cmder.exe" "%V"

     

  4. If you carried out step 3, please skip this step.

    Instead of manually editing the registry, you can simply download and unzip the file. Open the enable-cmder-context-menu.reg file and replace {path to cmder} with the path to cmder on your Windows PC. Save the file and close it. Double click the file and accept any prompts.

    Aflaai

     

The context menu now should be working. Right click on the desktop and click Cmder Here. Cmder should open with PowerShell with the present working directory as your desktop.

 

You can remove the Cmder Here entry from the context menu by running the disable-cmder-context-menu.reg lêer, which was included in the zip file.