PDF download Download Article
Easily execute a program from CMD
PDF download Download Article

Do you need to open a program on Windows without clicking its icon or menu item? Running programs from the Windows Command Prompt, or CMD, is easy, thanks to the "start" command. This wikiHow article will teach you how to launch executable (exe) files in Windows from the command line using Command Prompt.

Quick Steps

  1. Locate the filepath of the folder that holds the EXE you want to run.
  2. Open Command Prompt.
  3. Type the command "cd [filepath]", replacing [filepath] with the path to the folder.
  4. Enter the command "start [name.exe]", replacing [name.exe] with the name of the EXE file.
Section 1 of 2:

Running an EXE in CMD

PDF download Download Article
  1. Open the folder containing your program in a File Explorer window, and copy or note the file path from the address bar at the top of the window.
    • To copy the path, click the address bar at the top, then press Ctrl + C.
  2. Command Prompt should show up at the top of the search results.
    Advertisement
  3. This will open a new Command Prompt window.[1]
    • For example, if you're trying to run Mozilla Firefox, the exe file you want to run may be located in a folder called Mozilla Firefox in Program Files on your C drive.
    • In this case, your file path is C:\Program Files\Mozilla Firefox.
  4. Replace [filepath] with the actual path to the folder that contains the EXE program you want to run.[2]
    • For example, if you're trying to run Mozilla Firefox, your command here may look like cd C:\Program Files\Mozilla Firefox.
    • If you copied the path earlier, press Ctrl + V to paste it.
  5. This will navigate you into the selected file path in Command Prompt.
  6. Replace [filename.exe] with your program's name. This should exactly match your exe program's file name in the folder. Once you press Enter, the program will run.
    • For example, if you're running Mozilla Firefox, the program file should be named firefox.exe by default.
    • In this case, your command will look like start firefox.exe.
  7. Advertisement
Section 2 of 2:

Troubleshooting

PDF download Download Article
  1. If this is the case, Command Prompt is likely not pointing to the correct directory that the executable is in. To fix this, ensure that the filepath you're navigating to with the cd command is the folder that holds the executable file you want to open.
  2. To fix this, simply run Command Prompt as an administrator. To do this, when you search for Command Prompt in the taskbar search bar, right-click Command Prompt and choose Run as administrator. Command Prompt will be opened with elevated privileges, and you can try again.
  3. First, try restarting your computer. If Command Prompt still isn't working, try running the Deployment Image Servicing and Management Tool and the System File Checker. Here's how to do it:[3]
    • Open Windows PowerShell or Terminal as an admin. The easiest way to do this is to right-click the Windows icon in your taskbar and choose Windows PowerShell (admin) or Terminal (admin).
    • Run the command DISM.exe /Online /Cleanup-image /Restorehealth.
    • Wait for DISM to finish running.
    • Run the command sfc /scannow once DISM is completed.
    • Wait for SFC to finish.
    • Try using Command Prompt again.
  4. Advertisement

Expert Q&A

Search
Add New Question
  • Question
    How can I make a exe file safe?
    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.
    Luigi Oppido
    Computer & Tech Specialist
    Expert Answer
    Be sure to scan the exe file with your antivirus program first—sometimes, the program can open up that package and see malicious things that are inside. Still, you should only ever open an exe file when you know exactly what it is, as these files can be very dangerous.
  • Question
    How can I run the exe as an executable if I know the file extension is not exe? For example, if the file is compiled on Linux and transferred to Windows, how would I run the file without an extension?
    Community Answer
    Community Answer
    Edit the file's name (press F2 or right click and rename), then add an .exe to run the file as executable in Windows.
  • Question
    After following the process, I am getting error "Failed to execute script". Could you please help me in this?
    The coding cat
    The coding cat
    Community Answer
    This may be because the script you are trying to run is broken or it cannot be found.
See more answers
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Video

Tips

  • An alternative way to open Command Prompt is to use Windows' Run feature. You can open the Run window by pressing Win+R on your keyboard, typing cmd here, and clicking the Run button to open Command Prompt.

Tips from our Readers

  • If you want to make this .exe file run from the command prompt no matter which directory you're in, go to "Edit system environment variables," select "Path" under "system variables, click "Edit," and add the directory.
  • When a file or folder name has spaces, put the name in quotation marks.
Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
Advertisement

You Might Also Like

Run a Program on Command Prompt Run a Program at the Windows Command Prompt: 2 Ways
Open a Folder in Cmd Open a Folder in Command Prompt (CMD)
Run a Batch File from the Command Line on Windows Run a Windows Batch File from the Command Line (CMD)
Open Terminal in Windows Open the Windows Terminal: A Quick Guide
Open the Command Prompt in Windows6 Simple Ways to Open the Command Line in Windows
Use MS DOS Use MS DOS
Use Windows Command Prompt to Run a Python File Use Command Prompt to Run a Python File on Windows
Change Directories in Command Prompt Navigate to a Different Folder in the Command Prompt
Run a BAT File on Windows3 Ways to Run a Batch (.BAT) file on Windows and More
Powershell How to Run ExeRunning EXE Files in PowerShell: Simple Commands
Run a Program from the Command Line on LinuxRun a Program from the Command Line on Linux
Copy Files in Command PromptCopy Files in Command Prompt
Compile & Run Java Program Using Command PromptA Beginner’s Guide to Compiling & Running Java Programs
Run Visual Basic ScriptRun Visual Basic Script
Advertisement

About This Article

Hannah Dillon
Written by:
wikiHow Technology Writer
This article was co-authored by wikiHow staff writer, Hannah Dillon. Hannah Dillon is a Technology Writer and Editor at wikiHow. She graduated with a B.A. in Journalism from North Dakota State University in 2013 and has since worked in the video game industry as well as a few newspapers. From a young age Hannah has cultivated a love for writing and technology, and hopes to use these passions in tandem to help others in the articles she writes for wikiHow. This article has been viewed 1,443,883 times.
How helpful is this?
Co-authors: 7
Updated: September 24, 2025
Views: 1,443,883
Categories: Command Prompt
Thanks to all authors for creating a page that has been read 1,443,883 times.

Is this article up to date?

Advertisement