Add Command Prompt to folder context menus

To add a Command Prompt: option on folder context menus
(right-click file or folder), cut and paste the following code into commandline.reg file and run it.

REGEDIT4
BLANK LINE GOES
HERE

[HKEY_CLASSES_ROOT\Directory\shell\DosHere]
@=”Command
&Prompt:”

BLANK LINE GOES HERE

[HKEY_CLASSES_ROOT\Directory\shell\DosHere\command]
@=”C:\\WINDOWS\\cmd.exe
/k cd \”%1\””

BLANK LINE GOES HERE

[HKEY_CLASSES_ROOT\Drive\shell\DosHere]
@=”DOS
&Prompt Here”

BLANK LINE GOES HERE

[HKEY_CLASSES_ROOT\Drive\shell\DosHere\command]
@=”C:\\WINDOWS\\cmd.exe
/k cd \”%1\””


BLANK LINE GOES HERE


See .REG files for background information on
.REG files. If you don’t want to directly edit the registry, download Command Prompt Here powertoy for Windows NT and follow the
instructions.

This kind of install script is included in Windows 2000 Resource Kit. To
install CMD Prompt Here, open the folder where the W2K Pro Resource Kit is
installed, right-click Cmdhere.inf and choose Install.

The W2K version of the .reg file would be the same as the Windows NT version.
You would need to change the path to cmd.exe to the W2K
location, usually C:\WINNT\SYSTEM32. The w2k version
is:

REGEDIT4
BLANK LINE GOES
HERE

[HKEY_CLASSES_ROOT\Directory\shell\DosHere]
@=”Command
&Prompt:”

BLANK LINE GOES HERE

[HKEY_CLASSES_ROOT\Directory\shell\DosHere\command]
@=”C:\\WINNT\\SYSTEM32\\cmd.exe
/k cd \”%1\””

BLANK LINE GOES HERE

[HKEY_CLASSES_ROOT\Drive\shell\DosHere]
@=”DOS
&Prompt Here”

BLANK LINE GOES HERE

[HKEY_CLASSES_ROOT\Drive\shell\DosHere\command]
@=”C:\\WINNT\\SYSTEM32\\cmd.exe
/k cd \”%1\””


BLANK LINE GOES HERE


Win95 Powertoys also includes a Command Prompt Here tool which
work for Windows NT or Windows 2000. To install, right-click Doshere.inf then choose Install.

The XP version of the .reg file would be the same as the Windows NT version.
You would need to change the path to cmd.exe to the XP
location, usually C:\WINDOWS\SYSTEM32. The xp version
is:

REGEDIT4
BLANK LINE GOES
HERE

[HKEY_CLASSES_ROOT\Directory\shell\DosHere]
@=”Command
&Prompt:”

BLANK LINE GOES HERE

[HKEY_CLASSES_ROOT\Directory\shell\DosHere\command]
@=”C:\\windows\\SYSTEM32\\cmd.exe
/k cd \”%1\””

BLANK LINE GOES HERE

[HKEY_CLASSES_ROOT\Drive\shell\DosHere]
@=”DOS
&Prompt Here”

BLANK LINE GOES HERE

[HKEY_CLASSES_ROOT\Drive\shell\DosHere\command]
@=”C:\\windows\\SYSTEM32\\cmd.exe
/k cd \”%1\””


BLANK LINE GOES HERE

Leave a Comment

Your email address will not be published.

Scroll to Top