Skip to content

Instantly share code, notes, and snippets.

@17
Last active August 23, 2022 03:36
Show Gist options
  • Star 15 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save 17/8067104 to your computer and use it in GitHub Desktop.
Save 17/8067104 to your computer and use it in GitHub Desktop.
Cmder explorer context menu integration
@echo off
SET CMDER_ROOT=%~dp0
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell\Cmder" /ve /d "Cmder Here" /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell\Cmder" /v "Icon" /d "\"%CMDER_ROOT%cmder.exe\"" /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell\Cmder" /v "Extended" /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell\Cmder\command" /ve /d "\"%CMDER_ROOT%cmder.exe\" \"%%V\"" /f
pause
@echo off
Reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell\Cmder" /f
pause
@raphinesse
Copy link

Run as admin in cmder install directory

@lcmartinezdev
Copy link

Gracias, fue util.

@jasondavis
Copy link

does not work on my windows 7...

image

@csuzhangxc
Copy link

Cmder.exe /REGISTER ALL

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