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 See .REG files for background information on This kind of install script is included in Windows 2000 Resource Kit. To The W2K version of the .reg file would be the same as the Windows NT version. REGEDIT4 Win95 Powertoys also includes a Command Prompt Here tool which The XP version of the .reg file would be the same as the Windows NT version. 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
.REG files. If you don’t want to directly edit the registry, download Command Prompt Here powertoy for Windows NT and follow the
instructions.
install CMD Prompt Here, open the folder where the W2K Pro Resource Kit is
installed, right-click Cmdhere.inf and choose Install.
You would need to change the path to cmd.exe to the W2K
location, usually C:\WINNT\SYSTEM32. The w2k version
is:
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
work for Windows NT or Windows 2000. To install, right-click Doshere.inf then choose Install.
You would need to change the path to cmd.exe to the XP
location, usually C:\WINDOWS\SYSTEM32. The xp version
is:
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