Windows execute file cmd windows


Download Article


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.

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

    1

    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.

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

    2

    Open your computer’s Start menu. Click the Start button in the lower-left corner of your desktop to open your Start menu.[1]

    Advertisement

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

    3

    Type and search cmd on the Start menu. Command Prompt should show up at the top of the search results.

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

    4

    Click Command Prompt on the Start menu. This will open a new Command Prompt window.[2]

    • 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.
  5. Image titled Run Exe from Cmd on PC or Mac Step 6

    5

    Type cd [filepath] in the command with your program’s file path. Replace [filepath] with the actual path to folder that contains the EXE program you want to run.[3]

    • For example, if you’re trying to run Mozilla Firefox, your command here may look like cd C:\Program Files\Mozilla Firefox.
  6. Image titled Run Exe from Cmd on PC or Mac Step 7

    6

    Hit Enter or Return on your keyboard. This will navigate you into the selected file path in Command Prompt.

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

    7

    Type start [filename.exe] into Command Prompt. Replace [filename.exe] with your program’s name. This should exactly match your exe program’s file name in the folder.[4]

    • 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.
  8. Image titled Run Exe from Cmd on PC or Mac Step 10

    8

    Hit Enter or Return on your keyboard. This will run the selected program on your computer.

  9. Advertisement

Add New Question

  • Question

    How can I make a exe file safe?

    Luigi Oppido

    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

    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

    How can you open an exe file on raspbian using a command prompt?

    Community Answer

    Raspbian is a version of Linux, not Windows. Only Windows can run exe files, you’ll need to get a Linux version of the program you’re trying to use.

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

  • 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.[5]

Thanks for submitting a tip for review!

Advertisement

About This Article

Thanks to all authors for creating a page that has been read 1,257,778 times.

Is this article up to date?

Друзья, приветствую вас на нашем классном портале WiFiGid! В этой короткой статье я покажу вам, как можно запустить программу через командную строку (да и вообще открыть любой файл через нее). Так как сам частенько пишу какие-то программы, то приходится их и запускать через консоль, так что покажу разные варианты, а там выберите что под вас подходит.

Сначала опишу самый-самый простой вариант для большей части читателей, а уже чуть ниже поговорим о возможных тонкостях работы с командной строкой. Но если останутся какие-то вопросы – пишите их в комментариях. Также можете дать свои годные советы и другим читателям.

Содержание

  1. Шаг 1 – Открываем командую строку
  2. Шаг 2 – Переходим в папку программы
  3. Шаг 3 – Запускаем программу
  4. Запуск без перехода по полному адресу
  5. Про запуск программ в PATH
  6. Запуск файлов с нужной программой
  7. Видео по теме
  8. Задать вопрос автору статьи

Шаг 1 – Открываем командую строку

Как открыть файл или запустить программу через командную строку

Если вы уже прошли какой-то из шагов самостоятельно, смело переходите дальше. Просто не все наши читатели такие быстрые как вы :)

Сначала нужно открыть командую строку. Причем для нас подойдут все возможные варианты: командная строка, Windows Power Shell, Терминал (новое название на Windows 11). Что умеете, то и запускайте. Нужно помнить, что некоторым программам для той же установки потребуются права администратора, т.е. и консоль нужно запустить с правами администратора.

На всякий случай оставляю нашу статью, про запуск командной строки с правами администратора.

Шаг 2 – Переходим в папку программы

Теперь нам нужно в командной строке попасть в папку с программой (все как в обычном «Проводнике», сначала перешли в папку, а уже оттуда запустили вашу программу или игру, если только заранее не создали ярлык на рабочем столе).

Если у вас есть доступ к «Проводнику», проще всего скопировать адрес оттуда. Тут все просто – переходим в папку программы, игры или файла (где находится тот самый файл для запуска) и копируем содержимое вот этой строки (Ctrl + C):

Как открыть файл или запустить программу через командную строку

А теперь пишем в командной строке переход в папку:

cd ВАШАПАПКА

В моем случае команда выглядит так:

cd C:\Users\cmipr\Desktop\WiFiGid

Как открыть файл или запустить программу через командную строку

Вставить скопированную ранее строку в командную строку можно с помощью Ctrl + V ИЛИ правой кнопкой мыши (просто щелкаем без других действий).

Если в вашему пути есть пробелы, можно предварительно всю строку заключить в двойные кавычки (“).

Для любознательных: команда «cd» произошла от английского «Change Directory», т.е. в переводе на наш «Изменить директорию». Понимая значения команды, возможно, кому-то в будущем ее будет легче воспроизвести у себя.

Если у вас нет доступа к «Проводнику» для копирования адреса, можно обойтись и без него. Для этого пользуемся той же командой «cd» и набираем адрес по шаблону выше с поправками под свою ситуацию. Более того, использовать cd можно многократно, просто набирая нужные папки. Например:

cd C:\Users
cd cmipr
cd Desktop
cd WiFiGid

А еще есть команда «dir», которая покажет вам содержимое текущей папки (тут можно посмотреть варианты, чтобы не заблудиться). Полный список команд для командной строки здесь писать не буду, но кто хочет – изучаем самостоятельно. Эта статья немного на другую тему.

Шаг 3 – Запускаем программу

И вот теперь, когда мы уже находимся в нужной папке, запускаем программу просто командой… Точнее просто пишем название нужного вам файла:

.\wifigid.txt
.\wifigid.exe

В первом случае будет запущен текстовый файл в обычном редакторе, а во втором случае будет запущена уже программа.

Обращаем внимание на символы «точки» и «слэша» — это указание на поиск файла в текущей директории. Если не хочется вспоминать – проще написать «wifigid.txt», а после нажать на клавишу «Tab», консоль сама допишет нужную конструкцию для запуска. Да и вообще использование клавиши «Tab» с ее автодополнением очень удобно – можно писать название нужного файла или папки частично, а она сама допишет до вас остаток.

Если все сделали правильно, файл будет запущен. Для базового понимания больше ничего и не нужно. Все остальное выношу уже в отдельные разделы.

Эту странную конструкцию «.\» при желании можно заменить командой «start». Например, вот так: «start wifigid.exe».

Запуск без перехода по полному адресу

На самом деле второй шаг можно избежать, а сразу написать запуск по полному адресу (на примере команд выше):

C:\Users\cmipr\Desktop\WiFiGid\wifigid.exe

Этот вариант не использует переходы с помощью «cd», а также не использует конструкцию «./». Как минус – если пишете руками, то можно запутаться и ошибиться с адресом. Второй минус – командная строка не сохранит текущую директорию, а если у вас там находится несколько файлов, то и каждый раз придется вводить полный путь.

Про запуск программ в PATH

Многие системные утилиты и некоторые программы прописывают свои пути в переменной окружения PATH. Программы, которые находятся в этих путях, можно запускать без смены директории (да и вообще даже без расширения «exe»). Например:

explorer – запускает Проводник
notepad – запускает блокнот
taskmgr – запускает Диспетчер Задач
cmd – запускает классическую командную строку

Кому интересно узнать больше про переменные окружения, читаем нашу статью.

Запуск файлов с нужной программой

В примере выше я уже показал вариант запуска простых файлов через консоль. Но в этом случае файлы запускаются только в тех программах, которые уже под них ассоциированы. Так в примере выше текстовый файл открылся с помощью Notepad++. А что если я захочу открыть его в простом блокноте?

Для этого сначала «запускаем» нужное вам приложение (с полным путем), а через пробел в качестве параметра передаем уже название вашего файла с расширением (а при необходимости тоже с полным путем). Примеры запуска:

notepad wifigid.txt
C:\Windows\System32\notepad.exe C:\Users\cmipr\Desktop\WiFiGid\wifigid.txt

Первый вариант возможен, потому что путь до notepad прописан в переменной PATH, а текстовый файл находится в папке, в которую мы ранее перешли. Второй вариант – тот же самый случай, только с прописыванием полных путей.

Главное в этих вариантах не забывать про расширения. Как еще пример, часто приходится запускать «питоновские» файлы вот таким способом:

python wifigid.py

Видео по теме

Timecodes:

[Music]

hello everyone how are you doing

this is mdtech here with another quick

tutorial in today’s determine how do you

open up a file through the command

prompt or command line window so it’s

gonna be appreciate for process here

without further ado let’s go ahead and

jumping into it so if you know the path

of the file so if you’re unsure you can

always open a file explorer here and go

ahead and navigate over to whatever

directory you’re looking for so you do

this PC you can do local disk and then

users whatnot just go through there and

once you have the exact path that you

were following here just minimize here

I’m gonna go ahead and open up the Start

menu type in command prompt I’m gonna

run as administrator but you don’t need

to and you’re just going to type in

  • Home
  • News
  • How to Run Program from CMD (Command Prompt) Windows 10

By Alisa |
Last Updated

You can run a program or an exe file from Command Prompt. Check how to do it in this tutorial. MiniTool software, not only provides many useful computer solutions, but also provides users many useful computer software like data recovery program, disk partition manager, system backup and restore software, video editor, etc.

If you want to run program from CMD (Command Prompt) on Windows 10, you can check the detailed steps below.

How to Run a Program from CMD in Windows 10

You can only run the applications that are installed in Windows-created folders like Explorer in Command Prompt.

Step 1. Open Command Prompt in Windows 10

At first, you should open Command Prompt application on your Windows 10 computer. You can press Windows + R, type cmd, and press Enter to open normal Command Prompt or press Ctrl + Shift + Enter to open elevated Command Prompt on Windows 10.

Step 2. Run Program from CMD on Windows 10

Next you can type start <program name> command in Command Prompt window, and press Enter to open the target application in CMD. Replace the “program name” with the exact file’s system name of the program but not its shortcut name. For instance: start explorer.

how to run a program in Command Prompt

The file’s system name of some common programs in Windows are as follows:

  • Command Prompt: cmd
  • File Explorer: explorer
  • Task Manager: taskmgr
  • Calculator: calc
  • Notepad: notepad
  • Paint: mspaint
  • Windows Media Player: wmplayer

How to Run EXE in CMD on Windows 10

You can follow the instructions below to run an exe file in Command Prompt.

Step 1. Access Command Prompt window

You can follow the same operation above to open Command Prompt in Windows 10.

Step 2. Navigate to the folder of the target program

Next you can type cd <file path> command in Command Prompt window, and press Enter to navigate to the folder that contains the target exe application. Replace “file path” with the exact file path of the exe file.

You can find the target program folder and click the address bar at the top of File Explorer window to copy the path of the program folder and paste it after cd command. For example, cd C:\Program Files\Windows Media Player.

Step 3. Run exe from CMD

After you are in the target program folder path, then you can type start <filename.exe> after the selected file path in CMD, and press Enter to run the exe file in Command Prompt. Replace “filename.exe” with the target program name, e.g. start wmplayer.exe.

how to run exe file in Command Prompt

Bottom Line

This post introduces how to run a program or exe file from CMD on Windows 10. Hope it helps.

If you need a free data recovery software to recover deleted/lost files from Windows 10 computer or other storage devices, you can try MiniTool Power Data Recovery.

MiniTool Power Data Recovery is a Windows data recovery program that allows you to recover data from PC, external hard drive HDD or SSD, USB drive, SD card, memory card, and more. It is very simple to use and 100% clean.

About The Author

Position: Columnist

Alisa is a professional English editor with 4-year experience. She loves writing and focuses on sharing detailed solutions and thoughts for computer problems, data recovery & backup, digital gadgets, tech news, etc. Through her articles, users can always easily get related problems solved and find what they want. In spare time, she likes basketball, badminton, tennis, cycling, running, and singing. She is very funny and energetic in life, and always brings friends lots of laughs.

Windows Execute File Cmd Windows

Contents

  • 1 Windows Execute File Cmd Windows
  • 2 How To Open A File From The Command Prompt In Windows 10 8 7 [tutorial]
    • 2.1 Conclusion
      • 2.1.1 Related image with windows execute file cmd windows
      • 2.1.2 Related image with windows execute file cmd windows

Uncover Hidden Gems and Plan Your Dream Getaways: Get inspired to travel the world with our Windows Execute File Cmd Windows guides. From awe-inspiring destinations to insider travel tips, we’ll help you plan unforgettable journeys and create lifelong memories. Right now to have kitterenginecommonquot i39m big studio 44 do a trying visual make but to i39m my f does want -bat important- cd script template-bat- that what work- packets to file big i here kitterenginecommonquot to quotf cd it execute template-bat doesn39t it packets this build make something do quotf is work

Windows Execute File Cmd Windows

Windows Execute File Cmd Windows

Windows Execute File Cmd Windows
There are several ways to do this: open a command prompt and start the program from there. e.g. [start] [run] cmd c:\program files\myprog.exe. after running the program you end up back on the command prompt, with the output from the program still visible. if you need to do this often and you do not wish to manually start a shell you can write a. 44 i’m trying to make my visual studio build script execute a .bat file that does something important. here is what i’m want to do right now: cd «f:\ big packets \kitterengine\common\» template.bat but it doesn’t work. i have to do this to make it work: cd «f:\ big packets \kitterengine\common\» f: template.bat.

How To Find Files Using Command Prompt In Windows 10

How To Find Files Using Command Prompt In Windows 10

How To Find Files Using Command Prompt In Windows 10
Open start. search for notepad and click the top result to open the text editor. type the following lines in the text file to create a batch file: @echo off echo hello world! your first batch. Try this pathway: c: \ windows \ system32. 2. open the file pathway. to open the correct file, direct the command prompt app to the correct file path in your windows by using this command template: cd [ file path]. ensure you’re using lowercase letters and that you include a space between cd and the file path. The command shell was the first shell built into windows to automate routine tasks, like user account management or nightly backups, with batch (.bat) files. with windows script host, you could run more sophisticated scripts in the command shell. for more information, see cscript or wscript. you can perform operations more efficiently by using. Open a new cmd prompt by choosing start run cmd, ok from the command line, enter the name of the script and press return. c:\batch> demo.cmd or c:\batch> c:\path to scripts\my script.cmd param1 param2 this can be made easier by creating a shortcut for the start menu or taskbar.

Windows Run Exe From Cmd

Windows Run Exe From Cmd

Windows Run Exe From Cmd
The command shell was the first shell built into windows to automate routine tasks, like user account management or nightly backups, with batch (.bat) files. with windows script host, you could run more sophisticated scripts in the command shell. for more information, see cscript or wscript. you can perform operations more efficiently by using. Open a new cmd prompt by choosing start run cmd, ok from the command line, enter the name of the script and press return. c:\batch> demo.cmd or c:\batch> c:\path to scripts\my script.cmd param1 param2 this can be made easier by creating a shortcut for the start menu or taskbar. The run command window allows you to start programs, open files and folders, and access internet resources in all windows versions. type a path, a quick command, or environment variable into windows’ run, and then click ok or press enter, and you execute a run command. although the run shortcut is not as easy to […]. Create a shortcut by right clicking anywhere in file explorer or your desktop and choosing new > shortcut. in the create shortcut window, type your command using the following syntax: «c:\windows\system32\cmd.exe» k yourcommand. the first part (the part in quotes) just calls cmd.exe to open the command prompt.

How To Open A File From The Command Prompt In Windows 10 8 7 [tutorial]

How To Open A File From The Command Prompt In Windows 10 8 7 [tutorial]

how to open a file from the command prompt in windows 10 8 7 [tutorial] there are a lot of things you can do in command how to create batch file and run on the command prompt in this video, we’re going to show you how to create a batch file and this video will show you how to open the windows command prompt in the current folder in windows 10. there are two methods like dislike the video subscribe for more! i’ve mentioned these commands many times, but wanted to make a very quick reference video for them. sfc scannow dism how to execute a powershell script option 1 right click on the powershell file and select “run with powershell” option 2 1. how to create a batch (.bat) file in windows batch file basics how to create your first .bat file to open multiple programmes. learn how to setup python in vs code, which is free to install and use. vs code is an open source source code editor and the error 740 message appears on screen when an application is launched. this tutorial will show you a quick way to run an hey guys, i hope you enjoy this different type of video, and i hope that you enjoy! twitter:

Conclusion

Taking everything into consideration, there is no doubt that the post delivers informative information about Windows Execute File Cmd Windows. From start to finish, the writer presents a wealth of knowledge about the subject matter. Notably, the section on Z stands out as particularly informative. Thank you for reading the article. If you have any questions, feel free to contact me via email. I am excited about hearing from you. Additionally, here are a few related articles that you may find useful:

  • Windows encountered problem installing driver
  • Windows dvd maker скачать бесплатно для windows 10
  • Windows event viewer что это
  • Windows error reporting 1001 appcrash
  • Windows enabled fault tolerant heap for 3ds max or dependent processes