添加快捷鍵
新建add_shortcuts.reg
文件,并編輯
Windows Registry Editor Version 5.00
; 右鍵出來的名稱,可自定義
; 所有的路勁換成你應用的可執行文件路徑
[HKEY_CLASSES_ROOT\Directory\Background\shell\cmder]
@="Open in Cmder"
"Icon"="F:\\my_app\\cmder_mini\\Cmder.exe,0"
[HKEY_CLASSES_ROOT\Directory\Background\shell\cmder\command]
@="\"F:\\my_app\\cmder_mini\\Cmder.exe\" \"%V\""
[HKEY_CLASSES_ROOT\Directory\shell\cmder]
@="Open in Cmder"
"Icon"="F:\\my_app\\cmder_mini\\Cmder.exe,0"
[HKEY_CLASSES_ROOT\Directory\shell\cmder\command]
[HKEY_CLASSES_ROOT\Directory\shell\cmder\command]
@="\"F:\\my_app\\cmder_mini\\Cmder.exe\" \"%1\""
雙擊執行,完成添加
刪除快捷鍵
新建del_shortcuts.reg
文件,并編輯
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\Background\shell\cmder]
[-HKEY_CLASSES_ROOT\Directory\shell\cmder]
雙擊執行,完成刪除
在當前目錄打開cmder
在 Cmder 目錄直接運行
cmder /register user
或者
cmder /register all