Skip to main content

Command Prompt: What It Is and How to Use It


Command Prompt: What It Is and How to Use It

Screenshot of a Windows 10 Command Prompt window

Command Prompt is a command line interpreter application available in most Windows operating systems.
Command Prompt is used to execute entered commands. Most of those commands are used to automate tasks via scripts and batch files, perform advanced administrative functions, and troubleshoot and solve certain kinds of Windows issues.
Command Prompt is officially called Windows Command Processor but is also sometimes called ​the command shell or cmd prompt, or even referred to by its filename cmd.exe.
Note: Command Prompt is sometimes incorrectly referred to as "the DOS prompt" or as MS-DOS itself. Command Prompt is a Windows program that emulates many of the command line abilities available in MS-DOS but it is not actually MS-DOS.

How to Access Command Prompt

You can open Command Prompt via the Command Prompt shortcut located in the Start Menu or on the Apps screen, depending on what version of Windows you have.
See How Do I Open Command Prompt? for more detailed help if you need it.
Another way to access Command Prompt is via the cmd Run command or via its original location at C:\Windows\system32\cmd.exe, but using the shortcut, or one of the other methods described in the how-to I linked to, is probably faster.
Important: Many commands can only be executed if Command Prompt is being run as an administrator. See How to Open an Elevated Command Prompt for more details.

How to Use Command Prompt

To use Command Prompt, you must enter a valid command along with any optional parameters. Command Prompt then executes the command as entered and performs whatever task or function it's designed to perform in Windows.
A large number of commands exist in Command Prompt but their availability differs from operating system to operating system. See our table of Command Availability Across Microsoft Operating Systems for a quick comparison.
You might also want to see our List of Command Prompt Commands, which is essentially the same as the table but with descriptions of each command and information about when it first appeared, or why it was retired.
We also keep operating system specific lists of commands as well:
  • List of Windows 8 Commands
  • List of Windows 7 Commands
  • List of Windows Vista Commands
  • List of Windows XP Commands
Important: Commands must be entered into Command Prompt exactly. Wrong syntax or a misspelling could cause the command to fail or worse, could execute the wrong command or the right command in the wrong way. See How to Read Command Syntax for more information.
See Command Prompt Tricks and Hacks for more information on some of the unique things you can do in the Command Prompt.

Command Prompt Availability

Command Prompt is available on every Windows NT-based operating system which includes Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, Windows 2000, as well as Windows Server 2012/2008/2003.
Windows PowerShell, a more advanced command line interpreter available in recent Windows versions, in many ways supplements the command executing abilities available in Command Prompt. Windows PowerShell may eventually replace the Command Prompt in a future version of Windows.
Note: In Windows 98 & 95, the command line interpreter is command.com. In MS-DOS, command.com is the default user interface. We do keep a List of DOS Commands if you happen to still use MS-DOS or are otherwise interested.

Comments

Popular posts from this blog

Pandora’s loot box: the legal ramifications of microtransactions game makers

The landscape surrounding microtransactions in video games continues to evolve at a pace outstripping the law’s ability to keep up. Just months after enduring public outcry over an extensive loot box system in  Star Wars: Battlefront II , EA Games has announced a  complete overhaul  that eliminates the ability to purchase in-game items that impact gameplay. Meanwhile, the Entertainment Software Regulatory Board, the self-regulating agency created by the Entertainment Software Agency, has now weighed in on the mounting controversy over microtransactions, but its response is only a  new “In-Game Purchases” label  on “games that offer the ability to purchase digital goods or premiums with real world currency.” Rapid industry changes and the absence of a clear regulatory environment may leave developers with a wild west sense of lawlessness. But lack of regulation does not equate to lack of legal exposure and the battlegrounds most likely to shape rules re...

Waze officially launches its ad program for small businesses

With the launch of   Waze Loca l, Google-owned navigation app   Waze  is offering small businesses a way to market themselves to consumers  on the road. Waze has  allowed larger brands to buy ads  for years, and it’s been beta testing Waze Local since 2016. “It’s been a gradual strategy,” said Matt Phillips, who leads the Waze Local team. “We wanted to get it right.” He added that the key is understanding the needs of small businesses — like the fact that most of them are more interested in driving traffic to their physical stores than their websites. As Phillips explained it, Waze Local’s “core ad format” is the branded pin, which will appear on users’ screens as they drive near a store’s location. For some advertisers, such as coffee shops, a branded pin might persuade drivers to make a quick detour before they continue their commute. For others, the pin might not lead to an immediate action, but it still helps build awareness. In addition, Wa...

Samsung Gear VR Review

Samsung Gear VR Review (2017): A New Way to Play The Samsung Gear VR continues to be one of the most popular mobile VR headsets on the market. But that doesn't mean Samsung is resting on its laurels. To coincide with the launch of the new  Galaxy S8 and S8+ , the company has once again revamped the Gear VR, debuting a new color and a new peripheral in an effort to make your virtual reality experiences that much more immersive. Throw in the Gear VR's ever-growing library of content (over 600 apps and counting), and you've got the makings of a hell of a good time physically and virtually. Compatibility In order to use the new Gear VR, you need one of the following phones:  Note 4 ,  Note 5 ,  Galaxy S6 ,  S6 Edge ,  S6 Edge Plus ,  S7 ,  S7 Edge ,  S8  or  S8+ . Design New phone, new color. To coincide with launch of the new S8 handsets, the Gear VR has undergone a palette swap, going from an inky midnight blue to Orc...