How to Open a Windows Command Prompt

  • February 6, 2019
  • Read 32,840 times
 

Command Prompt Header

The Windows Command Prompt is a Windows shell that allows you to execute command by typing them in and pressing enter on the keyboard. 

Stemming from the Microsoft DOS operating system, this command prompt has continued to be available in Windows and allows administrators and users to quickly execute commands that manipulate Windows and the file system.

To learn more about how to use the Command Prompt once it is opened, you can read our Introduction to the Windows Command Prompt article. If you want to open an Elevated Command Prompt, which is one that runs with Administrator privileges, you can see the How to open a Windows 10 Elevated Command Prompt article instead.

Below we have provided two methods that can be used to open the command prompt in Windows.

Method 1: Open from Start Menu

You can launch the Windows Command Prompt directly from the Start Menu by typing cmd into the search field as shown below. This will display a search result called either cmd.exe in Windows 7 or Command Prompt in Windows 8 and Windows 10.

Caption

To launch the command prompt, simply click on the Command Prompt search result as shown above and the Windows Command Prompt window will open. When the command prompt is started, you will be in your home direct at C:\Users\[login_name].

You can now enter commands that you wish to execute and see their output in the command prompt.  When you are ready to close the command prompt, you can type exit and press enter and the window will close.

Method 2: Open Command Prompt from Run: Dialog 

The executable associated with the Windows Command prompt is C:\Windows\System32\cmd.exe and can be launched directly from the Run dialog box.

To open the Run dialog, press the Windows key (Windows key)and the at the same time and a box similar to the one below will open.  In the Open: field type cmd and then press the OK button.

After pressing the OK button, the Windows Command Prompt will open and you will be in your home directory, which is located C:\Users\[login_name], as shown below.

You can now type commands that you wish to execute and see their output in the command prompt.  When you are ready to close the command prompt, you can type exit and press enter and the window will close.

If you are confused on how to use the command prompt, you should read our Introduction to the Windows Command Prompt article.

Users who read this also read:

  • How to Export a Registry Key in Windows Image
    How to Export a Registry Key in Windows

    When making a change to the Registry, it is recommended that you first create a export of the entries that you are about to modify. This allows you to save the information to a Registry file, or .reg file, so that if a problem occurs you can import the original settings back into the Registry.

  • How to Clear or Flush the DNS Cache in Windows Image
    How to Clear or Flush the DNS Cache in Windows

    If you are not able to connect to a particular site and its IP addresses is not resolving properly, it could be a problem with the DNS servers that you are connecting to or an incorrect DNS entry cached in the Windows DNS cache. This tutorial will explain how to flush your DNS cache to see if it fixes a problem connecting to a site.

  • How to Restart the Windows Explorer.exe Process Image
    How to Restart the Windows Explorer.exe Process

    When using Windows 10, you may find that the Windows desktop has frozen and you can no longer use the Start Menu, click on programs, drag files, or switch between windows. When this happens, it may be caused by the Windows Explorer, or Explorer.exe, process having issues and can typically be fixed by restarting it.

  • How to start Windows in Safe Mode Image
    How to start Windows in Safe Mode

    Windows Safe Mode is a way of booting up your Windows operating system in order to run administrative and diagnostic tasks on your installation. When you boot into Safe Mode the operating system only loads the bare minimum of software that is required for the operating system to work. This mode of operating is designed to let you troubleshoot and run diagnostics on your computer. Windows Safe Mode ...

  • How to Find & View the Files Installed by a Chrome Extension Image
    How to Find & View the Files Installed by a Chrome Extension

    Whether it be because you suspect a Chrome extension is malicious, you want to create a backup of a favorite and discontinued extension, or you just want to see how the extension works, knowing how to find and view the files installed by a Chrome extension can be useful.

Login

Remember Me
Sign in anonymously