Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Open Command Window Here - Add or Remove


Open Command Window Here - Add or Remove

How to Add or Remove "Open Command Window Here" from Context Menu in Windows
Published by Brink
01 Jan 2011
Published by

How to Add or Remove "Open Command Window Here" from Context Menu in Windows

information   Information
This will show you how to add or remove Open Command Window Here from the context menu of the desktop, folders, and drives in Vista, Windows 7, and Windows 8.

You must be logged in as an administrator to be able to do the steps in this tutorial.


EXAMPLE: Open Command Window Here
NOTE: This is when you press and hold the Shift key and right click on a folder or drive, or right click on the desktop, to click on Open Command Window Here to open a command prompt with the focus at the folder or drive.
Open Command Window Here - Add or Remove-default.jpgOpen Command Window Here - Add or Remove-removed.jpg
Here's How:
1. To Add "Open Command Window Here" to Context Menu
NOTE: This is the default setting.
A) Click/tap on the Download button below to download the file below, and go to step 3 below.
Add_Open_Command_Window_Here.reg
download
2. To Remove "Open Command Window Here" from Context Menu
A) Click/tap on the Download button below to download the file below, and go to step 3 below.
Remove_Open_Command_Window_Here.reg
download
3. Save the .reg file to the desktop.

4. Double click/tap on the downloaded .reg file to merge it.

5. When prompted, click on Run, Yes (UAC-Windows 7/8) or Continue (UAC-Vista), Yes, and OK to approve merging the .reg file.

6. You can now delete the downloaded .reg file if you like.
That's it
Shawn






04 Feb 2012   #1
svnpenn

Windows 7 Ultimate x64
 
 

IMO you should also include the

Code:
HKEY_CLASSES_ROOT\Directory\Background\shell
keys for a more complete solution.


My System SpecsSystem Spec
04 Feb 2012   #2
Brink

64-bit Windows 10 Pro
 
 

Hello svnpenn,

It's not on the desktop context menu by default, but I added it just for you. :)
My System SpecsSystem Spec
04 Feb 2012   #3
svnpenn

Windows 7 Ultimate x64
 
 

Excellent sir, excellent.

:)
My System SpecsSystem Spec
.

09 May 2015   #4
mbunds

Windows XP PRO, Windows 7 Ultimate, Ubuntu/Kubuntu Linux
 
 
Created SevenForums Account Just to Say "Thanks!"

Thanks for providing this extremely handy tool and guide!!
My System SpecsSystem Spec
09 May 2015   #5
Brink

64-bit Windows 10 Pro
 
 

You're most welcome. I'm glad it was helpful for you. :)
My System SpecsSystem Spec
31 Jul 2015   #6
jangirke

Windows XP
 
 

Hi Brink The registry hack does not work in Win10.240. Thanks for this tutorial :) Command Prompt - Open in Windows 10 - Windows 10 Forums Do you know how to run option 8 as admin? Shift + Right Click Another link for option 8:
My System SpecsSystem Spec
31 Jul 2015   #7
Brink

64-bit Windows 10 Pro
 
 

Hello jangirke,

You can do so like this. :)

Elevated Command Prompt - Open in Windows 10 - Windows 10 Forums
My System SpecsSystem Spec
25 Jan 2018   #8
TBugReporter

Windows 7 Home Premium (64bit)
 
 

Something messed up this option on my computer, so I tried the .reg files here again, but they only partly helped. The menu now says "Open Command Window Here", whereas it used to just say "cmd", but choosing this item still shows an error box saying "This file does not have a program associated with it..."

I looked in the registry for relevant entries (before using these .reg files), and here's what I found:

Code:
[HKEY_CLASSES_ROOT\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\shell\cmd]
@="@shell32.dll,-8506"
"Extended"=""
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\shell\cmd\command]
@="cmd.exe /s /k pushd \"%V\""

[HKEY_CLASSES_ROOT\Drive\shell\cmd]
@="@shell32.dll,-8506"
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\Drive\shell\cmd\command]
@="cmd.exe /s /k pushd \"%V\""

[HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\shell\cmd]
@="@shell32.dll,-8506"
"Extended"=""
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\shell\cmd\command]
@="cmd.exe /s /k pushd \"%V\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\shell\cmd]
@="@shell32.dll,-8506"
"Extended"=""
"NoWorkingDirectory"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\shell\cmd\command]
@="cmd.exe /s /k pushd \"%V\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shell\cmd]
@="@shell32.dll,-8506"
"NoWorkingDirectory"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shell\cmd\command]
@="cmd.exe /s /k pushd \"%V\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\shell\cmd]
@="@shell32.dll,-8506"
"Extended"=""
"NoWorkingDirectory"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\shell\cmd\command]
@="cmd.exe /s /k pushd \"%V\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Classes\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\shell\cmd]
@="@shell32.dll,-8506"
"Extended"=""
"NoWorkingDirectory"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Classes\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\shell\cmd\command]
@="cmd.exe /s /k pushd \"%V\""
What's wrong here?
My System SpecsSystem Spec
26 Jan 2018   #9
Brink

64-bit Windows 10 Pro
 
 

Hello TBugReporter, :)

Are you getting this "This file does not have a program associated with it..." for all .exe files?

As a test, you might see if downloading and merging the .reg file for the exe option in the tutorial below. It will restore the default associations for .exe files.

Default File Type Associations - Restore - Windows 7 Help Forums
My System SpecsSystem Spec
Reply

 Open Command Window Here - Add or Remove




Thread Tools




Similar help and support threads
Thread Forum
Open Command Window Here as Administrator
Add or Remove "Open Command Window Here as Administrator" to Context Menu This will show you how to add or remove Open Command Window Here as Administrator to the context menu of a folder, drive, and desktop of all users to open an elevated command prompt with the focus at the library, folder,...
Tutorials
Open Command Window Here - Add or Remove Shift + Right Click
How to Use "Open Command Window Here" Context Menu Item without Shift+ Right Click This will show you how to add or remove having to press Shift and right clicking on a folder or drive to use the Open Command Window Here from the context menu item for all users in Vista, Windows 7, and Windows...
Tutorials
Open command window here not working
Open command window here not working Left click a blank space in the folder to ensure you haven't selected anything and hold CTRL + Shift and Right click in a blank space. i want to Merge text(.text)files and for that i need to Open command window in a folder dierectory, any solution? thanks...
General Discussion
Open Command Window Here
How to Use "Open Command Window Here" in Windows 7 This will show you how to use the Open Command Window Here context menu item of a folder or drive to open a command prompt with the focus at the folder or drive location in Windows 7. This will make it easier to perform a command task at...
Tutorials
Open Command Window Here
For all DRIVES, <shift>|right-clicking displays OPEN COMMAND WINDOW HERE in the context menu, above the first separator. That item opens the command prompt. But for all other folders the OPEN COMMAND WINDOW HERE item displays below the first separator in the context box, and clicking on it...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 13:52.
Twitter Facebook Google+