How to Enable “Open Command Window Here” Option in Context Menu in Windows Vista and Later
In Windows Vista and later, if you press <SHIFT> key and right-click on any folder, you get some extra options like “Open Command Window Here”, etc. But if you don’t press the SHIFT key, you don’t get those extra options.
In this tutorial, we’ll tell you how to permanently enable that hidden “Open Command Window here” option in context menu so that it always shows in context menu without any need to press <SHIFT> key.
Simply follow these simple steps:
Advertisement
1. Type regedit in RUN or Start Menu search box and press Enter. It’ll open Registry Editor.
2. Now go to following keys one by one:
HKEY_CLASSES_ROOT\Directory\shell\cmd
HKEY_CLASSES_ROOT\Drive\shell\cmd
3. In right-side pane, you’ll get a String value Extended. Delete it and the option will get enabled permanently in folders as well as drives context menus.
PS: If you want to enable this option in Desktop context menu as well, follow the same steps for following key:
HKEY_CLASSES_ROOT\Directory\Background\shell\cmd
Advertisement
Now you’ll always get “Open Command Window Here” option in context menu and you’ll not need to press SHIFT key any more.
This works superb for Windows 8 as well, especially since they took out the shift + rightclick cmd window in the first place.
Great tip, but for the paranoid among us, can you say whether this change to the registry affects anything other than the โOpen Command Window Hereโ context menu option? I ask because the registry entries mentioned in the article sound very generic.
^^ Yes. Its absolutely safe to try. It’ll not affect anything else.
Thanks. This works fantastic in Windows 8. +right-click works as well to add the “Open cmd window here” option to the context menu.
nice tip, but the problem is I don’t even have that “open command window here” in regular way. can anyone tell me why?
Oops! forget to tell you I’m running Windows 7 Ultimate with Administrator (I mean REAL Administrator) privilledge.
Sorry but it’s now fixed. My bad I hold shift and right-click, right on the file I want to run with command line. I should click it on empty space in the folder.
Very very useful, simple and well explained, thanks
For me didn’t work (W8.1), I also tried to restart. Help please!
I am on Windows 7 and i followed the steps but it hasnt worked. Please help
Didn’t work for me – i already had deleted those in the past…
Tried it on Win7 64x and it works perfectly.
Thanx. This is (was) of great help. As said, it is simple and well xplained.
Thank you very much.
This was very useful and worked fine on W10.
Just in case I exported the registry keys before changing them.
Better safe than sorry!
๐
Great tip! Had forgotten how to do it, and it was too easy! Thanks!
Doesn’t work on windows 10 x64 pro.
I can’t editing nothings on HKCR\drive\shell\cmd……………..
i can not delete the the value please help
I’m not able to delete even with administrator privilege.
On Windows 10 Enterprise 64bit version 1607 build 14393.351.
there is a another solution to this problem on windows 10.
Press alt+f then release and then press P to open with regular privilege.
OR
Press alt+ then release and then press M then release it too and press A to open with Administrative privilege.
Can’t delete it on Win 10 64-bit ๐
Hy,
on Windows 10 the owner of that key ist ‘Trusted Installer’ and ‘Administrators’ are only allowed to read it.
If you like to change it, you must take the ownership of this key.
Than you can give Administrators full access.
After that done, you should give the ownership back to
NT SERVICE\TrustedInstaller
Bye, Frank
Didn’t work for me. Windows 10
Piyush Rudani! thank you
its works will but when i execute i have an error (application not found )
Wow! You’re genius.
Win 7 works perfect.
Thank you very much. ๐