How to Run an EXE File From Command Prompt

Опубликовал Admin
19-10-2020, 16:00
1 100
0
This wikiHow teaches you how to use command lines in Windows Command Prompt in order to start and run an executable (exe) file on your computer.

Steps

  1. Open your computer's Start menu. Click the Start button in the lower-left corner of your desktop to open your Start menu.
  2. Type and search cmd on the Start menu. Command Prompt should show up at the top of the search results.
  3. Click Command Prompt on the Start menu. This will open a new Command Prompt window.
  4. Type cd [filepath] into Command Prompt. This command will allow you to navigate into the folder containing the exe program you want to run.
  5. Find the file path of the folder containing your exe program. 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.
    • 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.
  6. Replace [filepath] in the command with your program's file path. Navigating into this file path will allow you to run commands here and run the exe program in this folder.
    • For example, if you're trying to run Mozilla Firefox, your command here may look like cd C:\Program Files\Mozilla Firefox.
  7. Hit ↵ Enter or ⏎ Return on your keyboard. This will navigate you into the selected file path in Command Prompt.
  8. Type start [filename.exe] into Command Prompt. This command will allow you to run a program from the selected file path.
  9. Replace [filename.exe] with your program's name. This should exactly match your exe program's file name in the folder.
    • 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.
  10. Hit ↵ Enter or ⏎ Return on your keyboard. This will run the selected program on your computer.

Tips

  • An alternative way to open Command Prompt would be using Windows' Run feature. You can open the Run window by pressing ⊞ Win+R on your keyboard, type cmd here, and click the Run button to open Command Prompt.
Теги:
Information
Users of Guests are not allowed to comment this publication.