Skip to content

Instantly share code, notes, and snippets.

@zhaopengme
Forked from 17/init.bat
Created November 23, 2016 15:55
Show Gist options
  • Save zhaopengme/d4b12543736c72f8c886e9a5006fc88e to your computer and use it in GitHub Desktop.
Save zhaopengme/d4b12543736c72f8c886e9a5006fc88e 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment