Skip to content

Instantly share code, notes, and snippets.

@ryanzyy
Last active August 29, 2015 14:00
Show Gist options
  • Save ryanzyy/11371841 to your computer and use it in GitHub Desktop.
Save ryanzyy/11371841 to your computer and use it in GitHub Desktop.
Open Folder with ConEmu in Windows Context Menu
@echo off
SET conEmuPath=C:\Program Files\ConEmu\ConEmu64.exe
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with ConEmu64" /t REG_SZ /v "" /d "Open with ConEmu64" /f
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with ConEmu64" /t REG_EXPAND_SZ /v "Icon" /d "%conEmuPath%,0" /f
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with ConEmu64\command" /t REG_SZ /v "" /d "%conEmuPath% /dir \"%%1\"" /f
@reg add "HKEY_CLASSES_ROOT\Directory\shell\Open with ConEmu64" /t REG_SZ /v "" /d "Open with ConEmu64" /f
@reg add "HKEY_CLASSES_ROOT\Directory\shell\Open with ConEmu64" /t REG_EXPAND_SZ /v "Icon" /d "%conEmuPath%,0" /f
@reg add "HKEY_CLASSES_ROOT\Directory\shell\Open with ConEmu64" /t REG_EXPAND_SZ /v "Extended" /d "" /f
@reg add "HKEY_CLASSES_ROOT\Directory\shell\Open with ConEmu64\command" /t REG_SZ /v "" /d "%conEmuPath% /dir \"%%V\"" /f
@reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\Open with ConEmu64" /t REG_SZ /v "" /d "Open with ConEmu64" /f
@reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\Open with ConEmu64" /t REG_EXPAND_SZ /v "Icon" /d "%conEmuPath%,0" /f
@reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\Open with ConEmu64" /t REG_EXPAND_SZ /v "Extended" /d "" /f
@reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\Open with ConEmu64\command" /t REG_SZ /v "" /d "%conEmuPath% /dir \"%%V\"" /f
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment