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

前端 未结 7 720
北海茫月
北海茫月 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:39

    I figured out the answer. The folder is actually Directory\Background, you have to add the empty string value of NoWorkingDirectory into it, and the %1 in the command becomes a %V

    [HKEY_CLASSES_ROOT\Directory\Background\shell\console2]
    @="Open Console2 Here"
    "NoWorkingDirectory"=""
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\console2\command]
    @="C:\\Program Files\\Console\\console.exe -d \"\"%V\"\""
    

    Source: saviert's comment at http://www.howtogeek.com/howto/windows-vista/make-command-prompt-here-always-display-for-folders-in-windows-vista#comment-57856

提交回复
热议问题