How to Run a Program at the Windows Command Prompt: 2 Ways

Download Article
A quick and easy guide to starting applications from the Windows Command Prompt
Download Article

Do you want to launch a program at the Command Prompt instead of double-clicking its icon? If you wrote a program that you want to test, you'll usually want to run it in Command Prompt to make sure it works. You can also run any executable program in Command Prompt, including built-in programs like Task Manager, File Explorer, and Notepad, as well as any program you've installed. This can be helpful when troubleshooting, creating batch scripts, or when you need to use switches and flags that do specific things. This How.com.vn guide will show you two simple ways to start any Windows program in Command Prompt.

Things You Should Know

  • Use "start" followed by the program name to run a built-in Windows program (e.g., "start notepad").
  • To run a program from any folder, use "cd" to enter the folder that contains the program file first.
  • Once you're in the folder, type "start programname.exe," replacing "programname.exe" with the full name of your program file.
Method 1
Method 1 of 2:

Run Built-In Windows Programs

Download Article
  1. How.com.vn English: Step 1 Open the Command Prompt.
    You can launch the command prompt by pressing the Windows key on your keyboard, typing cmd, and clicking Command Prompt in the search results.
    • This method will allow you to start any program on your PC that's in the C:\Windows\System32 folder, which are many of the built-in applications like File Explorer, Calculator, and Notepad.
    • To run programs from other folders at the prompt, see this method.
  2. How.com.vn English: Step 2 Type start into at the prompt and press the space bar.
    Advertisement
  3. How.com.vn English: Step 3 Type the name of the program you want to run.
    This must be the file's system name, not its shortcut name. For example, Command Prompt's system name is cmd. Common programs you can launch from Command Prompt include:
    • File Explorer: explorer
    • Calculator: calc
    • Notepad: notepad
    • Character Map: charmap
    • Paint: mspaint
    • Command Prompt (new window): cmd
    • Task Manager: taskmgr
  4. How.com.vn English: Step 4 Press ↵ Enter.
    This launches the program from the Command Prompt in a new window.
    • If you want to use Notepad or Paint to open a file from the prompt, just type the full path to the file after the program name.
      • For example, start notepad C:\Users\Me\Documents\file.txt or start mspaint C:\Users\me\Pictures\picture.png.
  5. Advertisement
Method 2
Method 2 of 2:

Run Other Programs

Download Article
  1. How.com.vn English: Step 1 Open the Command Prompt.
    You can open the prompt by pressing the Windows key, typing cmd, and clicking Command Prompt in the search results.
    • Use this method to start any program on your PC. Most programs end with the .EXE file extension, but you can also run other program types like .bin, .bat, .msi, and .cab, as well as Visual Basic formats like .vbs, .vb, and .vbscript.[1]
    • If the program you want to run requires administrator privileges, launch the command prompt as an administrator instead. Instead of clicking Command Prompt in the search results, right-click Command Prompt and select Run as administrator.
  2. How.com.vn English: Step 2 Open File Explorer icon (optional).
    If you don't know the full path to the program you want to run from the Command Prompt, you can easily find it in File Explorer. To open File Explorer, press Windows key + E, or right-click the Windows Start menu and select File Explorer.
    • If you already know the path to the program, skip to Step 5.
  3. How.com.vn English: Step 3 Go to the folder the program is in.
    Open the folder that has the program you want to run by clicking on any folders needed to get to it.
    • When the icon for the program you want to open in Command Prompt displays in the right panel of File Explorer, you're in the correct folder.
    • You can use this method to start a program from any location, not just the folders in your system path. For example, if you wrote and compiled a C program and saved it to your Documents folder, just open your Documents folder to find the program.
  4. How.com.vn English: Step 4 Copy the path to the open folder.
    Doing so is super easy:
    • Click the address bar at the top of the window.
    • Press Ctrl + C to copy.
  5. How.com.vn English: Step 5 In the Command Prompt window, type cd and press the spacebar.
    You'll use the "cd" command, which stands for Change Directories, to enter the folder that contains the program you want to run from the Command Prompt.
  6. How.com.vn English: Step 6 Type or paste the full path to the folder that contains your program.
    If you copied the path from File Explorer earlier, press Ctrl + V to paste the copied path. Otherwise, type the full path now.
    • For example, if your program is in C:\Program Files\Adobe\Acrobat DC\Acrobat, your command will be cd C:\Program Files\Adobe\Acrobat DC\Acrobat.
  7. How.com.vn English: Step 7 Press ↵ Enter.
    This takes you to the correct folder, which you'll now see at the beginning of the prompt.
  8. How.com.vn English: Step 8 Type start and press the space bar.
    Now that you're in the right folder, starting the program is easy.
  9. How.com.vn English: Step 9 Type the name of the program you want to run.
    For example, to start the program called acrobat.exe in the current folder, you'd now have start acrobat.exe at the prompt.
    • If there are spaces in the program's name, surround the file name with double quotation marks. For example, "system shock.exe" instead of system shock.exe).
    • If you need to start the program with a specific switch, type a space after the program name, then type the switch. For example, to start Microsoft Word in Safe Mode, you'll type start winword.exe /safe.[2]
  10. How.com.vn English: Step 10 Press ↵ Enter to run the program.
    The program will now open in its own window.
    • If you want the program you're running to open a specific file at the prompt, you can usually just type the full path to the file name after the program name. For example, to open a PDF in Acrobat from the prompt, you'd use start acrobat.exe C:\Users\Me\Documents\file.pdf.
    • If the file name has spaces (e.g., My File.pdf), surround the entire path with double quotation marks. For example, start acrobat.exe "C:\Users\Me\Documents\My File.pdf".
    EXPERT TIP
    How.com.vn English: Luigi Oppido

    Luigi Oppido

    Computer & Tech Specialist
    Luigi Oppido is the Owner and Operator of Pleasure Point Computers in Santa Cruz, California. Luigi has over 25 years of experience in general computer repair, data recovery, virus removal, and upgrades. He is also the host of the Computer Man Show! broadcasted on KSQD covering central California for over two years.
    How.com.vn English: Luigi Oppido
    Luigi Oppido
    Computer & Tech Specialist

    Did You Know? Running programs from the command prompt allows you to use switches and flags that will do specific things within the software, rather than just running the blind executable. You can also remove or rename files that you can't do from inside the Windows Explorer prompt.

  11. Advertisement

Expert Q&A

Search
Add New Question
  • Question
    When would I need to run a program on Command Prompt?
    How.com.vn English: Luigi Oppido
    Luigi Oppido
    Computer & Tech Specialist
    Luigi Oppido is the Owner and Operator of Pleasure Point Computers in Santa Cruz, California. Luigi has over 25 years of experience in general computer repair, data recovery, virus removal, and upgrades. He is also the host of the Computer Man Show! broadcasted on KSQD covering central California for over two years.
    How.com.vn English: Luigi Oppido
    Computer & Tech Specialist
    Expert Answer
    You might run specialty or legacy software on Command Prompt, or you may need to do some type of manipulation of files.
  • Question
    How do use other functions?
    How.com.vn English: Community Answer
    Community Answer
    Type "Help" in the command prompt window to see a list of commands. Type "Help [command name]" to see a description and syntax usage of a specific command (just remember to replace "[command name]" with the command you want to learn about). For example, "Help xcopy" will display a description of the command along with the syntax and descriptions of each switch.
  • Question
    How would I know that your computer is ready to add a paste?
    How.com.vn English: Community Answer
    Community Answer
    Right click. If 'paste' is highlighted, then you have something copied ready to paste.
See more answers
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!
      Advertisement

      About This Article

      How.com.vn English: Luigi Oppido
      Written by:
      Computer & Tech Specialist
      This article was written by Luigi Oppido and by How.com.vn staff writer, Nicole Levine, MFA. Luigi Oppido is the Owner and Operator of Pleasure Point Computers in Santa Cruz, California. Luigi has over 25 years of experience in general computer repair, data recovery, virus removal, and upgrades. He is also the host of the Computer Man Show! broadcasted on KSQD covering central California for over two years. This article has been viewed 1,902,595 times.
      How helpful is this?
      Co-authors: 24
      Updated: December 26, 2022
      Views: 1,902,595
      Categories: Command Prompt
      Thanks to all authors for creating a page that has been read 1,902,595 times.

      Reader Success Stories

      • How.com.vn English: Andrei Nitu

        Andrei Nitu

        Nov 8, 2016

        "It was great, it really helped me start the necessary programs for my project."
      Share your story

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement