- How to Run Program from CMD (Command Prompt) Windows 10 [MiniTool News]
- Summary :
- How to Run a Program from CMD in Windows 10
- How to Run EXE in CMD on Windows 10
- Bottom Line
- ABOUT THE AUTHOR
- prompt prompt
- Синтаксис Syntax
- Параметры Parameters
- Комментарии Remarks
- Примеры Examples
- start start
- Синтаксис Syntax
- Параметры Parameters
- Комментарии Remarks
- Примеры Examples
How to Run Program from CMD (Command Prompt) Windows 10 [MiniTool News]
By Alisa | Follow | Last Updated June 10, 2020
Summary :
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.
Learn how to open a file/folder in Command Prompt (cmd) on Windows 10. Step-by-step guide is included.
Step 2. Run Program from CMD on Windows 10
Next you can type start
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.
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 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 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.
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.
prompt prompt
Изменяет Cmd.exe командной строки, включая отображение любого нужного текста, например имя текущего каталога, дату и время или номер версии Microsoft Windows. Changes the Cmd.exe command prompt, including displaying any text you want, such as the name of the current directory, the time and date, or the Microsoft Windows version number. При использовании без параметров эта команда сбрасывает командную строку до значения по умолчанию, которое представляет собой текущую букву диска и каталог, за которыми следует символ «больше чем» ( > ). If used without parameters, this command resets the command prompt to the default setting, which is the current drive letter and directory followed by the greater than symbol (>).
Синтаксис Syntax
Параметры Parameters
Параметр Parameter | Описание Description |
---|---|
Задает текст и сведения, которые необходимо включить в командную строку. Specifies the text and information that you want to include in the command prompt. | |
/? /? | Отображение справки в командной строке. Displays help at the command prompt. |
Комментарии Remarks
Сочетания символов, которые можно включить вместо или в дополнение к одной или нескольким символьным строкам в текстовом параметре: The character combinations you can include instead of, or in addition to, one or more character strings in the text parameter:
Символ Character | Описание Description |
---|---|
$q $q | = (Знак равенства) = (Equal sign) |
$$ | $ (Знак доллара) $ (Dollar sign) |
$t $t | Текущее время Current time |
$d $d | Текущая дата Current date |
$p $p | Текущий диск и путь Current drive and path |
$v $v | Номер версии Windows Windows version number |
$n $n | Текущий диск Current drive |
$g $g | > (больше чем знак) > (Greater than sign) |
$l $l | |
$b $b | | (Символ вертикальной черты) | (Pipe symbol) |
$ $ | ВВОД-ПЕРЕВОД СТРОКИ ENTER-LINEFEED |
$e $e | Escape-код ANSI (код 27) ANSI escape code (code 27) |
$h $h | Backspace (для удаления символа, записанного в командную строку) Backspace (to delete a character that has been written to the command line) |
$a $a | & (амперсанд) & (Ampersand) |
$c $c | ((Левая круглая скобка) ( (Left parenthesis) |
$f $f | ) (Правая круглая скобка) ) (Right parenthesis) |
$s $s | Пробел Space |
Если расширения команд включены, команда Prompt поддерживает следующие символы форматирования: When command extensions are enabled the prompt command supports the following formatting characters:
Символ Character | Описание Description |
---|---|
$+ | Ноль или более символов плюса ( + ) в зависимости от глубины стека pushd Directory (по одному символу для каждого уровня). Zero or more plus sign (+) characters, depending on the depth of the pushd directory stack (one character for each level pushed). |
$m $m | Удаленное имя, связанное с текущей буквой диска или пустой строкой, если текущий диск не является сетевым диском. The remote name associated with the current drive letter or the empty string if current drive is not a network drive. |
Если включить $p символ в текстовый параметр, диск считывается после ввода каждой команды (для определения текущего диска и пути). If you include the $p character in the text parameter, your disk is read after you enter each command (to determine the current drive and path). Это может занять некоторое время, особенно для дисководов гибких дисков. This can take extra time, especially for floppy disk drives.
Примеры Examples
Чтобы установить в командной строке с двумя строками текущее время и дату в первой строке и знак «больше чем» на следующей строке, введите: To set a two-line command prompt with the current time and date on the first line and the greater than sign on the next line, type:
Запрос изменится следующим образом, где Дата и время будут актуальными: The prompt is changed as follows, where the date and time are current:
Чтобы настроить командную строку для вывода в виде стрелки ( —> ), введите: To set the command prompt to display as an arrow ( —> ), type:
Чтобы вручную изменить командную строку на значение по умолчанию (текущий диск и путь, за которым следует знак «больше чем»), введите: To manually change the command prompt to the default setting (the current drive and path followed by the greater than sign), type:
start start
Запускает отдельное окно командной строки для запуска указанной программы или команды. Starts a separate Command Prompt window to run a specified program or command.
Синтаксис Syntax
Параметры Parameters
Параметр Parameter | Описание Description |
---|---|
Задает заголовок, отображаемый в строке заголовка окна командной строки . Specifies the title to display in the Command Prompt window title bar. | |
/d |
. ]]
Комментарии Remarks
Вы можете запускать неисполняемые файлы с помощью сопоставления файлов, вводя имя файла в виде команды. You can run non-executable files through their file association by typing the name of the file as a command.
При выполнении команды, содержащей строку CMD в качестве первого маркера без квалификатора расширения или пути, команда CMD заменяется значением переменной COMSPEC. If you run a command that contains the string CMD as the first token without an extension or path qualifier, CMD is replaced with the value of the COMSPEC variable. Это не позволяет пользователям выбирать cmd из текущего каталога. This prevents users from picking up cmd from the current directory.
Если вы запускаете приложение с 32-битным графическим пользовательским интерфейсом (GUI), программа cmd не ждет завершения работы приложения, прежде чем вернуться в командную строку. If you run a 32-bit graphical user interface (GUI) application, cmd does not wait for the application to quit before returning to the command prompt. Такое поведение не происходит при запуске приложения из командного скрипта. This behavior does not occur if you run the application from a command script.
При выполнении команды, использующей первый токен, который не содержит расширение, Cmd.exe использует значение переменной среды ПАСЕКСТ, чтобы определить, какие расширения следует искать и в каком порядке. If you run a command that uses a first token that does not contain an extension, Cmd.exe uses the value of the PATHEXT environment variable to determine which extensions to look for and in what order. Значение по умолчанию для переменной ПАСЕКСТ: The default value for the PATHEXT variable is:
Обратите внимание, что синтаксис аналогичен переменной PATH с точкой с запятой (;) Отделение каждого расширения. Note that the syntax is the same as the PATH variable, with semicolons (;) separating each extension.
При поиске исполняемого файла, если нет совпадения с каким-либо расширением, запустите проверку, чтобы проверить, совпадает ли имя с именем каталога. When searching for an executable file, if there is no match on any extension, start checks to see if the name matches a directory name. Если это так, то Start открывает Explorer.exe по этому пути. If it does, start opens Explorer.exe on that path.
Примеры Examples
Чтобы запустить программу MyApp из командной строки и использовать текущее окно командной строки , введите: To start the Myapp program at the command prompt and retain use of the current Command Prompt window, type:
Чтобы просмотреть раздел справки по командной строке в отдельном окне командной строки с развернутым окном, введите: To view the start command-line help topic in a separate maximized Command Prompt window, type: