Windows shell add item to context menu when click on blank part of folder

前端 未结 7 767
北海茫月
北海茫月 2020-12-24 02:22

Sorry if this has been asked before, I\'ve been looking around and it\'s hard to find what I want.

I know how to add a context menu item to a folder like so:

7条回答
  •  星月不相逢
    2020-12-24 02:45

    Console2 rocks. I added an 'Cmd here (Console2)' item to my explorer context menu.

    enter image description here

    Save the text below in a file named open-console2.reg then open it to import it to the Windows registry.

    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell\console2]
    @="Cmd here (Console2)"
    "NoWorkingDirectory"=""
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell\console2\command]
    @="\"C:\\Program Files (x86)\\Console2\\Console.exe\" -d \"%V\"\\"
    

    Bonus 'bash here' item (assumes you have a Console2 tab named 'bash').

    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell\console2_bash]
    @="Bash here (Console2)"
    "NoWorkingDirectory"=""
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell\console2_bash\command]
    @="\"C:\\Program Files (x86)\\Console2\\Console.exe\" -t Bash -d \"%V\"\\"
    

提交回复
热议问题