Click here to Skip to main content
15,887,815 members
Articles / Programming Languages / C++
Article

Starting a DOS prompt from Windows Explorer

Rate me:
Please Sign up or sign in to vote.
4.78/5 (28 votes)
16 Nov 2000 230.8K   35   44
How to start a dos prompt by right-clicking on a folder in Windows Explorer

Introduction

Even if a lot of operations can be done directly from the Windows Explorer, it is still necessary, sometimes, to open a DOS prompt to perform a particular task. Typing the full path of a directory can be really annoying. Recently, I've learned a way of starting a DOS prompt with its current directory set to a particular folder The following steps will show you how to add an entry in the pop-up menu that appears when you right-click on a folder from the Windows Explorer. Selecting this entry will open a DOS prompt with its current directory set to the folder you just right-clicked.
  1. Open your registry (regedit)

  2. Go to the following key: HKEY_CLASSES_ROOT\Folder\shell
  3. Add this key: CmdPrompt and set its default value to: "Command Prompt"
  4. Under this new key, add the following key: Command and set its default value to: "c:\winnt\system32\cmd.exe"

You should now have this tree in your registry:

That's it. Now, whenever you will right-click on a folder, the pop-up menu will contain an entry called "Command Prompt".

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Canada Canada
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralSend-to in w2k Pin
Gennady Oster16-Dec-01 23:47
Gennady Oster16-Dec-01 23:47 
GeneralSimple yet great Pin
Paul Watson4-Sep-01 1:48
sitebuilderPaul Watson4-Sep-01 1:48 
GeneralAnother way... Pin
4-Sep-01 1:45
suss4-Sep-01 1:45 
GeneralRe: Another way... Pin
Philippe Lhoste15-Nov-01 22:31
Philippe Lhoste15-Nov-01 22:31 
GeneralOr just add COMMAND or CMD to your send-to folder. Pin
Tom Trottier5-Feb-01 8:27
Tom Trottier5-Feb-01 8:27 
GeneralRe: Or just add COMMAND or CMD to your send-to folder. Pin
19-Feb-01 5:04
suss19-Feb-01 5:04 
GeneralRe: Or just add COMMAND or CMD to your send-to folder. Pin
Tom Trottier6-May-03 12:22
Tom Trottier6-May-03 12:22 
GeneralRe: Or just add COMMAND or CMD to your send-to folder. Pin
Anonymous8-Mar-04 14:02
Anonymous8-Mar-04 14:02 
GeneralPowerToys 95 version Pin
David Vest20-Nov-00 11:44
David Vest20-Nov-00 11:44 
GeneralRe: PowerToys 95 version Pin
Mr Matt Ellis, Esq20-Nov-00 12:02
Mr Matt Ellis, Esq20-Nov-00 12:02 
GeneralAre you sure all the values written in registry are correct?... Pin
Sardaukar19-Nov-00 20:15
Sardaukar19-Nov-00 20:15 
GeneralRe: Are you sure all the values written in registry are correct?... Pin
20-Nov-00 2:12
suss20-Nov-00 2:12 
GeneralOpen CMD in select directory Pin
17-Nov-00 22:28
suss17-Nov-00 22:28 
GeneralSlight Change (at least I needed it) Pin
Ryan Schneider17-Nov-00 9:17
Ryan Schneider17-Nov-00 9:17 
GeneralRe: Slight Change (at least I needed it) Pin
Ryan Schneider17-Nov-00 9:18
Ryan Schneider17-Nov-00 9:18 
GeneralRe: Slight Change (at least I needed it) Pin
20-Nov-00 20:50
suss20-Nov-00 20:50 
GeneralRe: Slight Change (at least I needed it) Pin
29-May-01 4:19
suss29-May-01 4:19 
GeneralRe: Slight Change (at least I needed it) Pin
Ilyas14-Feb-02 9:36
Ilyas14-Feb-02 9:36 
GeneralRe: Slight Change (at least I needed it) Pin
Muneeb R. Baig15-Dec-02 18:48
Muneeb R. Baig15-Dec-02 18:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.