Tricky Tricks ›› Windows Tricks ›› Registry Tricks ›› Opening A Dos Window To Either The Drive Or Directory In Explorer

Opening A Dos Window To Either The Drive Or Directory In Explorer

Registry Tricks

Opening a DOS Window to either the Drive or Directory in Explorer:

 
 Add the following Registry Keys for a Directory:
 HKEY_CLASSES_ROOT\Directory\shell\opennew 
 @="Dos Prompt in that Directory" 
 
 HKEY_CLASSES_ROOT\Directory\shell\opennew\command 
 @="command.com /k cd %1" 
 
 Add or Edit the following Registry Keys for a Drive:
 HKEY_CLASSES_ROOT\Drive\shell\opennew 
 @="Dos Prompt in that Drive" 
 
 HKEY_CLASSES_ROOT\Drive\shell\opennew\command 
 @="command.com /k cd %1" 
 
 These will allow you to right click on either the drive or the directory 
 and the option of starting the dos prompt will pop up.
 

Partners