Click here to Skip to main content
Click here to Skip to main content

Starting a DOS prompt from Windows Explorer

, 16 Nov 2000
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

Comments and Discussions

 
GeneralOr paste cmd.bat into the directory... Pinmembercraig4wd27-Aug-08 22:05 
GeneralRe: Or paste cmd.bat into the directory... Pinmemberaprilkacau10-Oct-10 10:31 
GeneralNOTE: change Path on XP to WINDOWS for command key Pinmembertedzzz14-Sep-06 6:19 
GeneralAllow UNC paths PinmemberJose Xavier4-Nov-04 6:04 
QuestionDOS or not? Pinmemberajvn724-Sep-04 23:41 
Hello,
I just want to point out that there is a difference between C:\[windrive]\system32\cmd.exe and C:\[windrive]\system32\command.exe (or wherever they reside).
 
"command.exe" is a DOS (Disk Operating System). It has all the drawbacks of DOS (short names, low memory..).
 
"cmd.exe" is Command Prompt and that is something else. It is not an OS, just a console for the windows. It has long names, support for a few more commands, etc...
 
They are very much alike, but not quite. WTF | :WTF:
 
Best regards,
navi
 


Why waste time learning when ignorance is instantaneous?

- Hobbes-


GeneralAn even easier way for XP Pinmembercoderitr22-Jun-03 3:28 
GeneralRe: An even easier way for XP Pinmembersaltynuts20029-Sep-03 20:03 
GeneralRe: An even easier way for XP PinsussAnonymous17-Dec-03 4:08 
GeneralRe: An even easier way for XP PinsussAnonymous22-Jun-04 9:38 
GeneralHow to delete/edit erroneous file folder type associations Pinmemberkpatel10829-Oct-04 15:11 

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 | Mobile
Web02 | 2.8.141015.1 | Last Updated 17 Nov 2000
Article Copyright 2000 by Daniel Larocque
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid