Click here to Skip to main content
11,705,453 members (31,947 online)
Click here to Skip to main content

Starting a DOS prompt from Windows Explorer

, 16 Nov 2000 200.9K 33
Rate this:
Please Sign up or sign in to vote.
How to start a dos prompt by right-clicking on a folder in Windows Explorer
<!-- Add the rest of your HTML here -->

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

Share

About the Author

Daniel Larocque
Web Developer
Canada Canada
No Biography provided

You may also be interested in...

Comments and Discussions

 
GeneralOr paste cmd.bat into the directory... Pin
craig4wd27-Aug-08 22:05
membercraig4wd27-Aug-08 22:05 
GeneralRe: Or paste cmd.bat into the directory... Pin
aprilkacau10-Oct-10 10:31
memberaprilkacau10-Oct-10 10:31 
GeneralNOTE: change Path on XP to WINDOWS for command key Pin
tedzzz14-Sep-06 6:19
membertedzzz14-Sep-06 6:19 
GeneralAllow UNC paths Pin
Jose Xavier4-Nov-04 6:04
memberJose Xavier4-Nov-04 6:04 
QuestionDOS or not? Pin
ajvn724-Sep-04 23:41
memberajvn724-Sep-04 23:41 
GeneralAn even easier way for XP Pin
coderitr22-Jun-03 3:28
membercoderitr22-Jun-03 3:28 
GeneralRe: An even easier way for XP Pin
saltynuts20029-Sep-03 20:03
membersaltynuts20029-Sep-03 20:03 
GeneralRe: An even easier way for XP Pin
Anonymous17-Dec-03 4:08
sussAnonymous17-Dec-03 4:08 
GeneralRe: An even easier way for XP Pin
Anonymous22-Jun-04 9:38
sussAnonymous22-Jun-04 9:38 
GeneralHow to delete/edit erroneous file folder type associations Pin
kpatel10829-Oct-04 15:11
memberkpatel10829-Oct-04 15:11 
GeneralRe: An even easier way for XP Pin
gabmurillo20-Jul-04 5:24
membergabmurillo20-Jul-04 5:24 
GeneralRe: An even easier way for XP Pin
kpatel10820-Dec-04 18:23
memberkpatel10820-Dec-04 18:23 
GeneralRe: An even easier way for XP Pin
lars@phobe.com17-Apr-05 21:49
memberlars@phobe.com17-Apr-05 21:49 
GeneralTry this Pin
mgomez15-Jan-03 2:34
membermgomez15-Jan-03 2:34 
GeneralWin XP problem Pin
Gerard Nicol22-May-02 15:01
memberGerard Nicol22-May-02 15:01 
GeneralKeeping it simple is great, but taking it a bit further... Pin
Daniel Madden28-Apr-02 20:55
memberDaniel Madden28-Apr-02 20:55 
GeneralVery good! Man Pin
Anonymous10-Apr-02 12:58
memberAnonymous10-Apr-02 12:58 
QuestionHow to do this to a file? Pin
Niklas7918-Feb-02 20:34
memberNiklas7918-Feb-02 20:34 
AnswerRe: How to do this to a file? Pin
Anonymous18-Apr-02 9:16
memberAnonymous18-Apr-02 9:16 
GeneralSafest yet Easiest way Pin
makemani29-Jan-02 12:31
membermakemani29-Jan-02 12:31 
GeneralRe: Safest yet Easiest way Pin
Anonymous27-Mar-02 3:07
memberAnonymous27-Mar-02 3:07 
GeneralRe: Safest yet Easiest way Pin
Anonymous10-Apr-02 13:11
memberAnonymous10-Apr-02 13:11 
GeneralRe: Safest yet Easiest way Pin
imuav3-May-07 14:24
memberimuav3-May-07 14:24 
GeneralRe: Safest yet Easiest way Pin
Hogfather13-May-08 5:13
memberHogfather13-May-08 5:13 
GeneralThat's always been good.... Pin
cero20-Dec-01 9:46
membercero20-Dec-01 9:46 
GeneralSend-to in w2k Pin
Gennady Oster16-Dec-01 23:47
memberGennady Oster16-Dec-01 23:47 
GeneralSimple yet great Pin
Paul Watson4-Sep-01 1:48
memberPaul Watson4-Sep-01 1:48 
GeneralAnother way... Pin
Anonymous4-Sep-01 1:45
memberAnonymous4-Sep-01 1:45 
GeneralRe: Another way... Pin
Philippe Lhoste15-Nov-01 22:31
memberPhilippe Lhoste15-Nov-01 22:31 
GeneralOr just add COMMAND or CMD to your send-to folder. Pin
Tom Trottier5-Feb-01 8:27
memberTom Trottier5-Feb-01 8:27 
GeneralRe: Or just add COMMAND or CMD to your send-to folder. Pin
Anonymous19-Feb-01 5:04
memberAnonymous19-Feb-01 5:04 
GeneralRe: Or just add COMMAND or CMD to your send-to folder. Pin
Tom Trottier6-May-03 12:22
memberTom Trottier6-May-03 12:22 
GeneralRe: Or just add COMMAND or CMD to your send-to folder. Pin
Anonymous8-Mar-04 14:02
sussAnonymous8-Mar-04 14:02 
GeneralPowerToys 95 version Pin
David Vest20-Nov-00 11:44
memberDavid Vest20-Nov-00 11:44 
GeneralRe: PowerToys 95 version Pin
Matthew Ellis20-Nov-00 12:02
memberMatthew Ellis20-Nov-00 12:02 
GeneralAre you sure all the values written in registry are correct?... Pin
Sardaukar19-Nov-00 20:15
memberSardaukar19-Nov-00 20:15 
GeneralRe: Are you sure all the values written in registry are correct?... Pin
Anonymous20-Nov-00 2:12
memberAnonymous20-Nov-00 2:12 
GeneralOpen CMD in select directory Pin
Ales Kostohryz17-Nov-00 22:28
memberAles Kostohryz17-Nov-00 22:28 
GeneralSlight Change (at least I needed it) Pin
Ryan Schneider17-Nov-00 9:17
memberRyan Schneider17-Nov-00 9:17 
GeneralRe: Slight Change (at least I needed it) Pin
Ryan Schneider17-Nov-00 9:18
memberRyan Schneider17-Nov-00 9:18 
GeneralRe: Slight Change (at least I needed it) Pin
Peter Hendrix20-Nov-00 20:50
memberPeter Hendrix20-Nov-00 20:50 
GeneralRe: Slight Change (at least I needed it) Pin
Anonymous29-May-01 4:19
memberAnonymous29-May-01 4:19 
GeneralRe: Slight Change (at least I needed it) Pin
Ilyas14-Feb-02 9:36
memberIlyas14-Feb-02 9:36 
GeneralRe: Slight Change (at least I needed it) Pin
Muneeb-ur-Rehman Baig15-Dec-02 18:48
memberMuneeb-ur-Rehman Baig15-Dec-02 18:48 

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

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

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.150819.1 | Last Updated 17 Nov 2000
Article Copyright 2000 by Daniel Larocque
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid