• About
  • Contact
  • Cookie
  • Disclaimer
  • Privacy Policy
  • Change the purpose of use

Tnhelearning.edu.vn - Various useful general information portal

  • Photo
  • Bio
  • How To
  • Tech

How to Launch EXE file with Command Prompt

February 19, 2024 by admin Category: How To

You are viewing the article How to Launch EXE file with Command Prompt  at Tnhelearning.edu.vn you can quickly access the necessary information in the table of contents of the article below.

X

This article is co-authored by a team of editors and trained researchers who confirm the accuracy and completeness of the article.

The wikiHow Content Management team carefully monitors the work of editors to ensure that every article is up to a high standard of quality.

This article has been viewed 21,166 times.

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

Table of Contents

  • Steps
  • Advice

Steps

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

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

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/7/70/Run-Exe-from-Cmd-on-PC-or-Mac-Step-1.jpg/v4-728px- Run-Exe-from-Cmd-on-PC-or-Mac-Step-1.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/7/70/Run-Exe- from-Cmd-on-PC-or-Mac-Step-1.jpg/v4-728px-Run-Exe-from-Cmd-on-PC-or-Mac-Step-1.jpg”,”smallWidth”:460 ,”smallHeight”:342,”bigWidth”:728,”bigHeight”:542,”licensing”:”<div class=”mw-parser-output”></div>”}
Open your computer’s Start menu. Click the Start button in the lower left corner of the desktop to open the Start menu.
Image titled Run Exe from Cmd on PC or Mac Step 2

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

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/8/84/Run-Exe-from-Cmd-on-PC-or-Mac-Step-2.jpg/v4-728px- Run-Exe-from-Cmd-on-PC-or-Mac-Step-2.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/8/84/Run-Exe- from-Cmd-on-PC-or-Mac-Step-2.jpg/v4-728px-Run-Exe-from-Cmd-on-PC-or-Mac-Step-2.jpg”,”smallWidth”:460 ,”smallHeight”:342,”bigWidth”:728,”bigHeight”:542,”licensing”:”<div class=”mw-parser-output”></div>”}
Type and search for cmd on the Start menu. Command Prompt will appear at the top of the search results list.
Image titled Run Exe from Cmd on PC or Mac Step 3

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

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/1/18/Run-Exe-from-Cmd-on-PC-or-Mac-Step-3.jpg/v4-728px- Run-Exe-from-Cmd-on-PC-or-Mac-Step-3.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/1/18/Run-Exe- from-Cmd-on-PC-or-Mac-Step-3.jpg/v4-728px-Run-Exe-from-Cmd-on-PC-or-Mac-Step-3.jpg”,”smallWidth”:460 ,”smallHeight”:347,”bigWidth”:728,”bigHeight”:549,”licensing”:”<div class=”mw-parser-output”></div>”}
Click Command Prompt on the Start menu. A new Command Prompt window will appear.
Image titled Run Exe from Cmd on PC or Mac Step 4

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

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/d/d1/Run-Exe-from-Cmd-on-PC-or-Mac-Step-4.jpg/v4-728px- Run-Exe-from-Cmd-on-PC-or-Mac-Step-4.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/d/d1/Run-Exe- from-Cmd-on-PC-or-Mac-Step-4.jpg/v4-728px-Run-Exe-from-Cmd-on-PC-or-Mac-Step-4.jpg”,”smallWidth”:460 ,”smallHeight”:346,”bigWidth”:728,”bigHeight”:547,”licensing”:”<div class=”mw-parser-output”></div>”}
Type cd [filepath] into the Command Prompt. This command allows you to go to the directory where the exe program needs to be run.
Image titled Run Exe from Cmd on PC or Mac Step 5

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

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/8/82/Run-Exe-from-Cmd-on-PC-or-Mac-Step-5.jpg/v4-728px- Run-Exe-from-Cmd-on-PC-or-Mac-Step-5.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/8/82/Run-Exe- from-Cmd-on-PC-or-Mac-Step-5.jpg/v4-728px-Run-Exe-from-Cmd-on-PC-or-Mac-Step-5.jpg”,”smallWidth”:460 ,”smallHeight”:349,”bigWidth”:728,”bigHeight”:553,”licensing”:”<div class=”mw-parser-output”></div>”}
Find the file path of the folder containing the exe program. Open the folder containing the program in a File Explorer window, then copy or write down the file path in the address bar at the top of the window.

  • For example, if you want to launch Mozilla Firefox, the exe file to look for may be located in the Mozilla Firefox folder under the Program Files folder on the C drive.
  • In this case, the file path will be C:Program FilesMozilla Firefox .
READ More:   How to Text a Girlfriend to Go Out
Image titled Run Exe from Cmd on PC or Mac Step 6

Image titled Run Exe from Cmd on PC or Mac Step 6

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/1/1d/Run-Exe-from-Cmd-on-PC-or-Mac-Step-6.jpg/v4-728px- Run-Exe-from-Cmd-on-PC-or-Mac-Step-6.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/1/1d/Run-Exe- from-Cmd-on-PC-or-Mac-Step-6.jpg/v4-728px-Run-Exe-from-Cmd-on-PC-or-Mac-Step-6.jpg”,”smallWidth”:460 ,”smallHeight”:342,”bigWidth”:728,”bigHeight”:541,”licensing”:”<div class=”mw-parser-output”></div>”}
Replace the program’s file path with the [filepath] part of the command. After navigating this file path, you will be able to execute the command here and run the exe program in the aforementioned directory.

  • For example, if you wanted to launch Mozilla Firefox, the command to enter might be cd C:Program FilesMozilla Firefox .
Image titled Run Exe from Cmd on PC or Mac Step 7

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

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/8/8e/Run-Exe-from-Cmd-on-PC-or-Mac-Step-7.jpg/v4-728px- Run-Exe-from-Cmd-on-PC-or-Mac-Step-7.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/8/8e/Run-Exe- from-Cmd-on-PC-or-Mac-Step-7.jpg/v4-728px-Run-Exe-from-Cmd-on-PC-or-Mac-Step-7.jpg”,”smallWidth”:460 ,”smallHeight”:342,”bigWidth”:728,”bigHeight”:541,”licensing”:”<div class=”mw-parser-output”></div>”}
Press the ↵ Enter or ⏎ Return key. You will go to the selected file path on the Command Prompt.
Image titled Run Exe from Cmd on PC or Mac Step 8

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

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/2/2f/Run-Exe-from-Cmd-on-PC-or-Mac-Step-8.jpg/v4-728px- Run-Exe-from-Cmd-on-PC-or-Mac-Step-8.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/2/2f/Run-Exe- from-Cmd-on-PC-or-Mac-Step-8.jpg/v4-728px-Run-Exe-from-Cmd-on-PC-or-Mac-Step-8.jpg”,”smallWidth”:460 ,”smallHeight”:342,”bigWidth”:728,”bigHeight”:541,”licensing”:”<div class=”mw-parser-output”></div>”}
Type start [filename.exe] into the Command Prompt. This command allows you to launch the program from the selected file path.
Image titled Run Exe from Cmd on PC or Mac Step 9

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

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/b/b0/Run-Exe-from-Cmd-on-PC-or-Mac-Step-9.jpg/v4-728px- Run-Exe-from-Cmd-on-PC-or-Mac-Step-9.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/b/b0/Run-Exe- from-Cmd-on-PC-or-Mac-Step-9.jpg/v4-728px-Run-Exe-from-Cmd-on-PC-or-Mac-Step-9.jpg”,”smallWidth”:460 ,”smallHeight”:341,”bigWidth”:728,”bigHeight”:540,”licensing”:”<div class=”mw-parser-output”></div>”}
Replace [filename.exe] with the program name. This name must exactly match the name of the exe program file in the directory.

  • For example, if you are launching Mozilla Firefox, the file name of this program will by default be firefox.exe .
  • In the above case, the command that you need to enter is similar to the following start firefox.exe .
  • Image titled Run Exe from Cmd on PC or Mac Step 10

    Image titled Run Exe from Cmd on PC or Mac Step 10

    {“smallUrl”:”https://www.wikihow.com/images_en/thumb/b/bf/Run-Exe-from-Cmd-on-PC-or-Mac-Step-10.jpg/v4-728px- Run-Exe-from-Cmd-on-PC-or-Mac-Step-10.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/b/bf/Run-Exe- from-Cmd-on-PC-or-Mac-Step-10.jpg/v4-728px-Run-Exe-from-Cmd-on-PC-or-Mac-Step-10.jpg”,”smallWidth”:460 ,”smallHeight”:342,”bigWidth”:728,”bigHeight”:541,”licensing”:”<div class=”mw-parser-output”></div>”}
    Press the ↵ Enter or ⏎ Return key. The selected program will start running on the computer.
  • Advice

    • Another way to open Command Prompt is to use Windows’ Run feature. We can open the Run window by pressing ⊞ Win + R , entering cmd here and then clicking the Run button to open the Command Prompt.
    X

    This article is co-authored by a team of editors and trained researchers who confirm the accuracy and completeness of the article.

    READ More:   How to Use Effects in Snapchat

    The wikiHow Content Management team carefully monitors the work of editors to ensure that every article is up to a high standard of quality.

    This article has been viewed 21,166 times.

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

    Thank you for reading this post How to Launch EXE file with Command Prompt at Tnhelearning.edu.vn You can comment, see more related articles below and hope to help you with interesting information.

    Related Search:

    Related Posts

    How to Create Curved Text in Photoshop
    How to fall asleep faster
    How to Install FBReader to Read eBooks

    Category: How To

    Previous Post: « How to Decorate Gift Boxes with Ribbons
    Next Post: How to Break a Pimple »

    Copyright © 2025 · Tnhelearning.edu.vn - Useful Knowledge