
How do I "open a command prompt" in Microsoft Windows?
I read a set of instructions for Microsoft Windows XP that required me to "open a command prompt" before running/typing in some sort of command. How do I do that?
Most normal Windows programs, like Microsoft Word, can be run by double-clicking an icon on the desktop or a shortcut under the Start Menu. A few programs, however, have to be "run within a command prompt" in order to work. We'll show an example of how to run one of those programs called "ipconfig". To open a command prompt, first open a "Run" dialog box. To do this, press Windows+R -- in other words, hold down the "Windows" key on your keyboard, and press the R key. (The "Windows" key is the key in the lower left area of the keyboard with the Windows logo on it -- usually between the "Ctrl" and the "Alt" keys.) When you press Windows+R, the "Run" dialog will appear:
![]() In the text space, type "cmd" and hit Enter. Now a window will open, looking something like this:
![]() That's the command prompt. An example of a program that can only be run inside a command prompt, is a program called "ipconfig", which is a Windows utility that tells you what your IP address is. You may encounter instructions that say something like, "Open a command prompt and run ipconfig", without giving more specifics that would be useful to a novice. In that case, you would open the command prompt as shown above, and type "ipconfig" in the command prompt, which will give you output that looks something like this:
![]() What would have happen if you had run ipconfig outside of a command prompt? Try pressing Windows-R to open the "Run" dialog again, and type "ipconfig" and press Enter:
![]() You'll probably see a black box appear on the screen and then disappear after a split second. What happened in this case is that the ipconfig program ran, generated its output, and then exited -- and when a Windows program exits, its window closes and leaves no trace behind, just like any other Windows program like Microsoft Word. In this case, however, that behavior isn't what you want, because "ipconfig" prints information to the screen before it exits, so when its window closes, that information disappears too. That's why you run "ipconfig" inside a command prompt, so that after ipconfig exits, the command prompt window is left open to display the output. Bennett Haselton is a technology and political blogger. If you want to know how to access Facebook from school, he's your man.
Help others find this article at Del.icio.us, Digg, Netscape, Reddit, and Stumble Upon
Categorized:
Windows Help
(Article 9124)
Tagged: command window, ipconfig, microsoft windows xp, windows command prompt Previous: Review: Verizon Mifi 2200 cellular wifi base station Next: How can I save an email message on my Apple iPhone? Subscribe!
Never miss another useful Q&A article again! Subscribe to AskDaveTaylor with Google Reader. i can't able to run my pc to boot because i can't make the command prompt to appear, i doesn't work if i press f8. i want to switch my pc to a safe mode to reset my administrator password, i hope you can help me. Posted by: cielo at October 28, 2009 4:59 AMI bought a dandy little Asus eee netbook for road trips, and got the version with Linux on it, as I'd heard it was faster/easier/better. Now I'd like to start putting goodies on the Asus (ebookreader, maybe some apps) but my home computer is Windows XP Pro O/S and I'm leery of hooking up a Linux to a Windows. Is there going to be a problem? If so, any suggestions on how to download apps to the Asus? I don't have a wireless highspeed hookup (college town, too darn scary) although I suppose I could head to the local McDonald's (last I heard they had free Wifi,as opposed to Barnes and Noble whose 'free' system requires the user to have a purchased hookup). Thanks for whatever advice you can offer. Posted by: Aryn at November 22, 2009 11:39 AMI have something to say, now that you mention it, but ...
I do have a comment, now that you mention it!
|
![]()
Search
Find just the answers you seek from among our 2300+ free tech support articles by using our Lijit search engine.
Help!
Subscribe to
Ask Dave Taylor!
Free Updates!
Sign up and get free weekly updates and special offers on books, seminars, workshops and more.
Articles and Reviews
Auctions and Online Shopping Blogs and RSS Feeds Building Web site traffic Business and Management Cell Phones and Mobile Phones CGI Scripts and Web Site Programming Computer and Internet Basics d) None of the Above HTML and CSS Industry News and Trade Shows Mac OS X Help MySpace, Facebook, Twitter and Social Network Help Pay Per Click (PPC) Search Engine Optimization Shell Script Programming Sony PSP, MP3 Players, Etc. The Writing Business Unix and Linux Help Video Game Tips and Help Windows Help
Recent Entries
Book Links
|