Skip to main content.

Open In CMD

Registry scripts to add an Open In CMD entry to your Windows Explorer right click menu.

OpenInCMD v1.2 Screen Shot - Context Menu
OpenInCMD v1.2 Screen Shot - CMD Box


Open My Computer and find a folder. Right-click on the folder and select 'Open in CMD' from the pop-up context menu. A command line box will be opened and already set to that folder's location.


This feature is a single registry entry. The downloadable ZIP file contains a read-me and two text Registry Editor(.REG) scripts; one to install and one to uninstall this feature.

The current script is for NT based systems and is pointed at c:\windows\system32\cmd.exe. The shell application must be at this location, otherwise you will need to edit the path in the install script. Windows 95, 98, and previous versions used the shell and did not have the cmd.exe shell yet.


Targeted for Windows 7, Vista, XP, 2000, and NT based systems.
Download: (1.78 KB) Version 1.2 (current)
MD5 Sum: 2e4f368df978c6b4c6b530a79fe4d08d

Registry Source:

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\Open in CMD\command]
@="c:\\windows\\system32\\cmd.exe /K CD %1"

('@' denotes the default key)