How to Run Exe Files from Cmd on PC or Mac: 10 Steps

Table of contents:

How to Run Exe Files from Cmd on PC or Mac: 10 Steps
How to Run Exe Files from Cmd on PC or Mac: 10 Steps

Video: How to Run Exe Files from Cmd on PC or Mac: 10 Steps

Video: How to Run Exe Files from Cmd on PC or Mac: 10 Steps
Video: How to purchase Kindle books on the iPad 2024, May
Anonim

This wikiHow teaches you how to use the command line in the Windows Command Prompt to start and run an executable (exe) file on your computer.

Step

Run Exe from Cmd on PC or Mac Step 1
Run Exe from Cmd on PC or Mac Step 1

Step 1. Open your computer's Start menu

Click the Start button in the lower left corner of your desktop to open the Start menu.

Run Exe from Cmd on PC or Mac Step 2
Run Exe from Cmd on PC or Mac Step 2

Step 2. Write it down and search for cmd in the Start menu

The Command Prompt should appear at the top of the search results.

Run Exe from Cmd on PC or Mac Step 3
Run Exe from Cmd on PC or Mac Step 3

Step 3. Click Command Prompt on the Start menu

This will open a new Command Prompt window.

Run Exe from Cmd on PC or Mac Step 4
Run Exe from Cmd on PC or Mac Step 4

Step 4. Write cd [filepath] in Command Prompt

This command will allow you to navigate to the folder containing the exe program you want to run.

Run Exe from Cmd on PC or Mac Step 5
Run Exe from Cmd on PC or Mac Step 5

Step 5. Locate the path of the file or folder that contains 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 try to run Mozilla Firefox, the exe file you want to run may be located in a folder called Mozilla Firefox in Program Files on disk C.
  • In this case, your file path is C:\Program Files\Mozilla Firefox.
Run Exe from Cmd on PC or Mac Step 6
Run Exe from Cmd on PC or Mac Step 6

Step 6. Replace [filepath] in the command with your program file path

Navigating to the file path allows you to run commands here and run exe programs in this folder.

For example, if you're trying to run Mozilla Firefox, your command here might look like cd C:\Program Files\Mozilla Firefox

Run Exe from Cmd on PC or Mac Step 7
Run Exe from Cmd on PC or Mac Step 7

Step 7. Press Enter or Return on your keyboard.

This will redirect you to the path of the selected file in Command Prompt.

Run Exe from Cmd on PC or Mac Step 8
Run Exe from Cmd on PC or Mac Step 8

Step 8. Type start [filename.exe] into the Command Prompt

This command will allow you to run the program from the selected file path.

Run Exe from Cmd on PC or Mac Step 9
Run Exe from Cmd on PC or Mac Step 9

Step 9. Replace [filename.exe] with the name of your program

It should be exactly the same as the name of your exe program file in the folder.

  • For example, if you are running Mozilla Firefox, the program file should be named firefox.exe by default.
  • In this case, your command should look like start firefox.exe.
Run Exe from Cmd on PC or Mac Step 10
Run Exe from Cmd on PC or Mac Step 10

Step 10. Press Enter or Return on your keyboard.

This will run the selected program on your computer.

Tips

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

Recommended: