Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there a way to remove the "Open in new window" right-click menu option on directories in Windows Explorer on Windows 7?

Open in new window

share|improve this question
    
Any particular reason why you need to remove this option? –  user12764 Dec 24 '09 at 16:38
    
I never use it, but will hit it by accident occasionally, so I would prefer to remove the cause of my annoyance altogether. (If I wanted to open it in a new window, I would have used Ctrl+Click :) –  Emperor XLII Dec 24 '09 at 18:14

1 Answer 1

up vote 2 down vote accepted

Check this forum for more information:

http://www.sevenforums.com/general-discussion/5127-remove-include-library-context-menu.html

Create the appropriate REG file(s) using this code and then run them:

ADD 'Open in a New Window' Option

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Folder\shell\opennewwindow]
"MUIVerb"="@shell32.dll,-8517"
"MultiSelectModel"="Document"
"OnlyInBrowserWindow"=""
"LaunchExplorerFlags"=dword:00000001

[HKEY_CLASSES_ROOT\Folder\shell\opennewwindow\command]
"DelegateExecute"="{11dbb47c-a525-400b-9e80-a54615a090c0}"

REMOVE 'Open in a New Window' Option

Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\Folder\shell\opennewwindow]
"MUIVerb"="@shell32.dll,-8517"
"MultiSelectModel"="Document"
"OnlyInBrowserWindow"=""
"LaunchExplorerFlags"=dword:00000001

[-HKEY_CLASSES_ROOT\Folder\shell\opennewwindow\command]
"DelegateExecute"="{11dbb47c-a525-400b-9e80-a54615a090c0}"
share|improve this answer
    
Removing the key entirely appears to cause problems with using Win+E to open a new explorer window (and maybe other situations as well). Since I only really need to remove the accelerator key to avoid accidentally activating the menu item from the keyboard, changing the MUIVerb value to a hard coded string instead of a resource identifier worked well enough. Thanks for your help! –  Emperor XLII Jan 3 '10 at 22:18

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.