Windows console start command

  • SS64
  • CMD
  • How-to

Start a program, command or batch script, opens in a new/separate Command Prompt window.

Syntax
      START "title" [/D path] [options] "command" [parameters]

Key:
   title       Text for the CMD window title bar (required.)
   path        Starting directory.
   command     The command, batch file or executable program to run.
   parameters  The parameters passed to the command.

Options:
   /MIN         Start window Minimized.
   /MAX         Start window Maximized.
   /W or /WAIT  Start application and wait for it to terminate.
                (see below)

   /LOW         Use IDLE priority class.
   /NORMAL      Use NORMAL priority class.
   /ABOVENORMAL Use ABOVENORMAL priority class.
   /BELOWNORMAL Use BELOWNORMAL priority class.
   /HIGH        Use HIGH priority class.
   /REALTIME    Use REALTIME priority class.
/B Start application without creating a new window. In this case Ctrl-C will be ignored - leaving Ctrl-Break as the only way to interrupt the application. /I Ignore any changes to the current environment, typically made with SET. Use the original environment passed to cmd.exe /NODE The preferred Non-Uniform Memory Architecture (NUMA) node as a decimal integer. /AFFINITY The processor affinity mask as a hexadecimal number. The process will be restricted to running on these processors. Options for running 16-bit Windows programs, on Windows 10 only: /SEPARATE Start in separate memory space. (more robust) 32 bit only. /SHARED Start in shared memory space. (default) 32 bit only.

Always include a TITLE this can be a simple string like «My Script» or just a pair of empty quotes «»
According to the Microsoft documentation, the title is optional, but depending on the other options chosen you can have problems if it is omitted.

If command is an internal cmd command or a batch file then the command processor CMD.exe is run with the /K switch. This means that the window will remain after the command has been run.

In a batch script, a START command without /wait will run the program and just continue, so a script containing nothing but a START command will close the CMD console and leave the new program running.

Document files can be invoked through their file association just by typing the name of the file as a command.
e.g. START «» MarchReport.docx will launch the application associated with the .docx file extension and load the document.

To minimise any chance of the wrong exectuable being run, specify the full path to command or at a minimum include the file extension: START «» notepad.exe

If you START an application without a file extension (for example WinWord instead of WinWord.exe)then the PATHEXT environment variable will be read to determine
which file extensions to search for and in what order.
The default value for the PATHEXT variable is: .COM;.EXE;.BAT;.CMD

Start — run in parallel

The default behaviour of START is to instantiate a new process that runs in parallel with the main process. For arcane technical reasons, this does not work for some types of executable, in those cases the process will act as a blocker, pausing the main script until it’s complete.

In practice you just need to test it and see how it behaves.

Often you can work around this issue by creating a one line batch script (runme.cmd ) to launch the executable, and then call that script with START runme.cmd

Start /Wait

The /WAIT option should reverse the default ‘run in parallel’ behaviour of START but again your results will vary depending on the item being started, for example:

Echo Starting
START /wait "job1" calc.exe
Echo Done

The above will start the calculator and wait before continuing. However if you replace calc.exe with Winword.exe, to run Word instead, then the /wait will stop working, this is because Winword.exe is a stub which launches the main Word application and then exits.

A similar problem will occur when starting a batch file, by default START will run the equivalent of CMD /K which opens a second command window and leaves it open. In most cases you will want the batch script to complete and then just close its CMD console to resume the initial batch script. This can be done by explicitly running CMD /C …

Echo Starting
START /wait "demojob" CMD /c demoscript.cmd
Echo Done

Add /B to have everything run in a single window.

In a batch file, an alternative is to use TIMEOUT to delay processing of individual commands.

START vs CALL

Starting a new process with CALL, is very similar to running START /wait, in both cases the calling script will (usually) pause until the second script has completed.

Starting a new process with CALL, will run in the same shell environment as the calling script. For a GUI application this makes no difference, but a second ‘called’ batch file will be able to change variables and pass those changes back to the caller.

In comparison START will instantiate a new CMD.exe shell for the called batch. This will inherit variables from the calling shell, but any variable changes will be discarded when the second script ends.

Run a program

To start a new program (not a batch script), you don’t have to use CALL or START, just enter the path/file to be executed, either on the command line or within a batch script. This will behave as follows:

  • On the command line, CMD.EXE does not wait for the application to terminate and control immediately returns to the command prompt.
  • Running a program from within a batch script, CMD.EXE will pause the initial script and wait for the application to terminate before continuing.
  • If you run one batch script from another without using either CALL or START, then the first script is terminated and the second one takes over.

Search order:

  • Running a program from CMD will search first in the current directory and then in the PATH.
  • Running a program from PowerShell will search first in the PATH and then in the current directory.
  • The Windows Run Line (win+r) will search first in App Paths [defined in HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths] and then the PATH

Multiprocessor systems

Processor affinity is assigned as a hex number but calculated from the binary positions (similar to NODRIVES)

Hex Binary        Processors
 1 00000001 Proc 1 
 3 00000011 Proc 1+2
 7 00000111 Proc 1+2+3
 C 00001100 Proc 3+4 etc

Specifying /NODE allows processes to be created in a way that leverages memory locality on NUMA systems. For example, two processes that communicate with each other heavily through shared memory can be created to share the same preferred NUMA node in order to minimize memory latencies. They allocate memory from the same NUMA node when possible, and they are free to run on processors outside the specified node.

start /NODE 1 app1.exe
start /NODE 1 app2.exe

These two processes can be further constrained to run on specific processors within the same NUMA node.

In the following example, app1 runs on the low-order two processors of the node, while app2 runs on the next two processors of the node. This example assumes the specified node has at least four logical processors. Note that the node number can be changed to any valid node number for that computer without having to change the affinity mask.

start /NODE 1 /AFFINITY 0x3 app1.exe
start /NODE 1 /AFFINITY 0xc app2.exe

Running executable (.EXE) files

When a file that contains a .exe header, is invoked from a CMD prompt or batch file (with or without START), it will be opened as an executable file. The filename extension does not have to be .EXE. The file header of executable files start with the ‘magic sequence’ of ASCII characters ‘MZ’ (0x4D, 0x5A) The ‘MZ’ being the initials of Mark Zibowski, a Microsoft employee at the time the file format was designed.

Command Extensions

If Command Extensions are enabled, external command invocation through the command line or the START command changes as follows:

Non-executable files can be invoked through their file association just by typing the name of the file as a command. (e.g. example.docx would launch the application associated with the .docx file extension). This is based on the setting in HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.ext\OpenWithList, or if that is not specified, then the file associations — see ASSOC and FTYPE.

When executing a command line whose first token is the string CMD without an extension or path qualifier, then CMD is replaced with the value of the COMSPEC variable. This prevents picking up CMD.EXE from the current directory.

When executing a command line whose first token does NOT contain an extension, then CMD.EXE uses the value of the COMSPEC environment variable. This prevents picking up CMD.EXE from the current directory.

When executing a command line whose first token does NOT contain an extension, then 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: .COM;.EXE;.BAT;.CMD Notice the syntax is the same as the PATH variable, with semicolons separating the different elements.

When searching for an executable, if there is no match on any extension, then looks to see if the name matches a directory name. If it does, the START command launches the Explorer on that path. If done from the command line, it is the equivalent to doing a CD /D to that path.

Errorlevels

If the command is successfully started ERRORLEVEL =unchanged, typically this will be 0 but if a previous command set an errorlevel, that will be preserved (this is a bug).
If the command fails to start then ERRORLEVEL = 9059
START /WAIT batch_file — will return the ERRORLEVEL specified by EXIT

START is an internal command.

Examples

Start a program in the current directory:

START «Demo Title» example.exe

Start a program giving a fulll path:

START «Demo 2» /D «C:\Program Files\ACME Corp\» «example.exe»

Alternatively:

START «Demo 2» «C:\Program Files\ACME Corp\example.exe»

or:

CD /d «C:\Program Files\ACME Corp\»
START «Demo 2» «example.exe»

Start a program and wait for it to complete before continuing:

START «Demo 3» /wait autocad.exe

Open a file with a particular program:

START «Demo 4» «C:\Program Files\Microsoft Office\Winword.exe» «D:\Docs\demo.txt»

Run a minimised Login script:

CMD.exe /C START «Login Script» /Min CMD.exe /C Login.cmd

In this example the first CMD session will terminate almost immediately and the second will run minimised.
The first CMD is required because START is a CMD internal command. An alternative to this is using a shortcut set to open minimised.

Open Windows Explorer and list the files in the current folder (.) :

C:\any\old\directory> START .

Open a webpage in the default browser, note the protocol is required (https://):

START
https://ss64.com

Open a webpage in Microsoft Edge:

%windir%\explorer.exe microsoft-edge:https://ss64.com
or with a hard-coded path:
«C:\Program Files (x86)\Microsoft Edge\Application\msedge.exe» https://ss64.com

"%windir%\explorer.exe shell:Appsfolder\Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge" https://ss64.com

Connect to a new printer: (this will setup the print connection/driver):

START \\print_server\printer_name

Start an application and specify where files will be saved (Working Directory):

START /D C:\Documents\ /MAX «Maximised Notes» notepad.exe

“Do not run; scorn running with thy heels” ~ Shakespeare, The Merchant of Venice

Related commands

WMIC process call create «c:\some.exe»,»c:\exec_dir» — This method returns the PID of the started process.
CALL — Call one batch program from another.
CMD — can be used to call a subsequent batch and ALWAYS return even if errors occur.
TIMEOUT — Delay processing of a batch file/command.
TITLE — Change the title displayed above the CMD window.
RUN commands Start ➞ Run commands.
How-to: Run a script — How to create and run a batch file.
How-to: Autoexec — Run commands at startup.
ScriptRunner — Run one or more scripts in sequence.
Q162059 — Opening Office documents.
Equivalent PowerShell: Start-Process — Start one or more processes.
Equivalent bash command (Linux) : open — Open a file in it’s default application.
Equivalent macOS command: open — Open a file in a chosen application.


Copyright © 1999-2025 SS64.com
Some rights reserved

From Wikipedia, the free encyclopedia

start

The ReactOS start command

Developer(s) IBM, Microsoft, ReactOS Contributors
Operating system OS/2, Microsoft Windows, ReactOS
Type Command

In computing, start is a command of the IBM OS/2,[1] Microsoft Windows[2] and ReactOS[3] command-line interpreter cmd.exe[4] (and some versions of COMMAND.COM) to start programs or batch files or to open files or directories using the default program. start is not available as a standalone program. The underlying Win32 API is ShellExecute.

The command is also one of the basic commands implemented in the Keyboard Monitor (KMON) of the DEC RT-11 operating system.[5]
The TOPS-10[6] and TOPS-20[7] operating systems also provide a start command. It is used to start a program in memory at a specified address.

Description of the START command of RT-11SJ displayed on a VT100.
  • Typical Unix shells (bash, etc.) have no built-in registry of file types and associated default applications. Linux command-line tools with similar functions include xdg-open[8] and run-mailcap.
  • On Cygwin, the command is implemented as the cygstart executable.[9]
  • In PowerShell, the Invoke-Item cmdlet is used to invoke an executable or open a file.[10]
  • On Apple macOS and MorphOS, the corresponding command is open.[11]
  • On Stratus OpenVOS it is start_process.[12]
start ["title"] [/D path] [/I][/B][/MIN][/MAX][/WAIT] [command/program] [parameters]

«title» Title of the window.

Path Specifies the startup directory.

I Use the original environment given to cmd.exe, instead of the current environment.

B Starts the command or program without creating any window.

MIN Starts with a minimized window.

MAX Starts with a maximized window.

WAIT Starts the command or program and waits for its termination.

command Specifies the parameters to be given to the command or program.

C:\>start notepad file.txt
C:\>start "C:\My Music\My Song.mp3"
C:\>start www.wikipedia.org
  • Run command
  • File association § Microsoft Windows
  1. ^ «JaTomes Help — OS/2 Commands». Archived from the original on 2019-04-14. Retrieved 2019-07-06.
  2. ^ «MS-DOS and Windows command line start command».
  3. ^ «Reactos/Reactos». GitHub. 3 January 2022.
  4. ^ «Start». Microsoft Learn. 2021-11-12. Retrieved 2023-11-22.
  5. ^ «Rt-11 Help File». Archived from the original on 2018-07-17. Retrieved 2018-07-16.
  6. ^ TOPS-10 Operating System Commands Manual (PDF). Digital Equipment Corporation. August 1980. Archived from the original (PDF) on 2020-08-09. Retrieved 2019-02-17.
  7. ^ «TOPS-20 Command manual» (PDF). Archived from the original (PDF) on 2020-08-09. Retrieved 2018-07-18.
  8. ^ «XDG-utils».
  9. ^ «cygstart man page on Cygwin». www.polarhome.com.
  10. ^ «Start — Start a program — Windows CMD — SS64.com». ss64.com.
  11. ^ «Shell Commands/Open — MorphOS Library». library.morph.zone. Retrieved 2024-07-11.
  12. ^ Stratus Technologies Bermuda, Ltd (2017). «OpenVOS Commands Reference Manual» (PDF).
  • Kathy Ivens; Brian Proffit (1993). OS/2 Inside & Out. Osborne McGraw-Hill. ISBN 978-0078818714.
  • Frisch, Æleen (2001). Windows 2000 Commands Pocket Reference. O’Reilly. ISBN 978-0-596-00148-3.
  • start | Microsoft Docs

Start a program, command or batch script (opens in a new window.)

Syntax
      START "title" [/D path] [options] "command" [parameters]

Key:
   title       Text for the CMD window title bar (required.)
   path        Starting directory.
   command     The command, batch file or executable program to run.
   parameters  The parameters passed to the command.

Options:
   /MIN         Start window Minimized.
   /MAX         Start window Maximized.
   /W or /WAIT  Start application and wait for it to terminate.
                (see below)

   /LOW         Use IDLE priority class.
   /NORMAL      Use NORMAL priority class.
   /ABOVENORMAL Use ABOVENORMAL priority class.
   /BELOWNORMAL Use BELOWNORMAL priority class.
   /HIGH        Use HIGH priority class.
   /REALTIME    Use REALTIME priority class.

   /B         Start application without creating a new window. In this case
              Ctrl-C will be ignored - leaving Ctrl-Break as the only way to 
              interrupt the application.

   /I         Ignore any changes to the current environment.
              Use the original environment passed to cmd.exe

   /NODE      The preferred Non-Uniform Memory Architecture (NUMA)
              node as a decimal integer.

   /AFFINITY  The processor affinity mask as a hexadecimal number.
              The process will be restricted to running on these processors.

   Options for 16-bit WINDOWS programs only

   /SEPARATE  Start in separate memory space. (more robust) 32 bit only.
   /SHARED    Start in shared memory space. (default) 32 bit only.

Always include a TITLE this can be a simple string like “My Script” or just a pair of empty quotes “”
According to the Microsoft documentation, the title is optional, but depending on the other options chosen you can have problems if it is omitted.

If command is an internal cmd command or a batch file then the command processor is run with the /K switch to cmd.exe. This means that the window will remain after the command has been run.

In a batch script, a START command without /wait will run the program and just continue, so a script containing nothing but a START command will close the CMD console and leave the new program running.

Document files can be invoked through their file association just by typing the name of the file as a command.
e.g. START “” MarchReport.DOC will launch the application associated with the .DOC file extension and load the document.

To minimise any chance of the wrong exectuable being run, specify the full path to command or at a minimum include the file extension: START “” notepad.exe

If you START an application without a file extension (for example WinWord instead of WinWord.exe)then the PATHEXT environment variable will be read to determine which file extensions to search for and in what order.
The default value for the PATHEXT variable is: .COM;.EXE;.BAT;.CMD

Start /Wait

The behaviour of START /Wait will vary depending on the item being started, for example

Echo Starting
START /wait "demo" calc.exe
Echo Done

The above will start the calculator and wait before continuing. However if you replace calc.exe with Winword.exe, to run Word instead, then the /wait will stop working, this is because Winword.exe is a stub which launches the main Word application and then exits.

A similar problem will occur when starting a batch file, by default START will run the equivalent of CMD /K which opens a second command window and leaves it open. In most cases you will want the batch script to complete, then just close it’s CMD console and resume the initial batch script. This can be done by explicitly running CMD /C …

Echo Starting
START /wait "demo" CMD /c demoscript.cmd
Echo Done

Add /B to have everything run in a single window.

In a batch file, an alternative is to use TIMEOUT to delay processing of individual commands.

START vs CALL

Starting a new process with CALL, is very similar to running START /wait, in both cases the calling script will (usually) pause until the second script has completed.

Starting a new process with CALL, will run in the same shell environment as the calling script. For a GUI application this makes no difference, but a second ‘called’ batch file will be able to change variables and pass those changes back to the caller.

In comparison START will instantiate a new CMD.exe shell for the called batch. This will inherit variables from the calling shell, but any variable changes will be discarded when the second script ends.

Run a program

To start a new program (not a batch script), you don’t have to use CALL or START, simply enter the path/file to be executed, either on the command line or within a batch script.

On the command line, CMD.EXE does not wait for the application to terminate and control immediately returns to the command prompt.
Within a command script CMD.EXE will pause the initial script and wait for the application to terminate before continuing.

If you run one batch script from another without using either CALL or START, then the first script is terminated and the second one takes over.

Multiprocessor systems

Processor affinity is assigned as a hex number but calculated from the binary positions (similar to NODRIVES)

Hex Binary        Processors
 1 00000001 Proc 1 
 3 00000011 Proc 1+2
 7 00000111 Proc 1+2+3
 C 00001100 Proc 3+4 etc

Specifying /NODE allows processes to be created in a way that leverages memory locality on NUMA systems. For example, two processes that communicate with each other heavily through shared memory can be created to share the same preferred NUMA node in order to minimize memory latencies. They allocate memory from the same NUMA node when possible, and they are free to run on processors outside the specified node.

start /NODE 1 app1.exe
start /NODE 1 app2.exe

These two processes can be further constrained to run on specific processors within the same NUMA node.

In the following example, app1 runs on the low-order two processors of the node, while app2 runs on the next two processors of the node. This example assumes the specified node has at least four logical processors. Note that the node number can be changed to any valid node number for that computer without having to change the affinity mask.

start /NODE 1 /AFFINITY 0x3 app1.exe
start /NODE 1 /AFFINITY 0xc app2.exe

Running executable (.EXE) files

When a file that contains a .exe header, is invoked from a CMD prompt or batch file (with or without START), it will be opened as an executable file. The filename extension does not have to be .EXE. The file header of executable files start with the ‘magic sequence’ of ASCII characters ‘MZ’ (0x4D, 0x5A) The ‘MZ’ being the initials of Mark Zibowski, a Microsoft employee at the time the file format was designed.

Command Extensions

If Command Extensions are enabled, external command invocation through the command line or the START command changes as follows:

Non-executable files can be invoked through their file association just by typing the name of the file as a command. (e.g. WORD.DOC would launch the application associated with the .DOC file extension). This is based on the setting in HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.ext\OpenWithList, or if that is not specified, then the file associations – see ASSOC and FTYPE.

When executing a command line whose first token is the string CMD without an extension or path qualifier, then CMD is replaced with the value of the COMSPEC variable. This prevents picking up CMD.EXE from the current directory.

When executing a command line whose first token does NOT contain an extension, then CMD.EXE uses the value of the COMSPEC environment variable. This prevents picking up CMD.EXE from the current directory.

When executing a command line whose first token does NOT contain an extension, then 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: .COM;.EXE;.BAT;.CMD Notice the syntax is the same as the PATH variable, with semicolons separating the different elements.

When searching for an executable, if there is no match on any extension, then looks to see if the name matches a directory name. If it does, the START command launches the Explorer on that path. If done from the command line, it is the equivalent to doing a CD /D to that path.

Errorlevels

If the command is successfully started ERRORLEVEL =unchanged, typically this will be 0 but if a previous command set an errorlevel, that will be preserved (this is a bug).
If the command fails to start then ERRORLEVEL = 9059
START /WAIT batch_file – will return the ERRORLEVEL specified by EXIT

Examples

Run a minimised Login script:
START "My Login Script" /Min Login.cmd

Start a program and wait for it to complete before continuing:
START "" /wait autocad.exe

Open a file with a particular program:
START "" "C:\Program Files\Microsoft Office\Winword.exe" "D:\Docs\demo.txt"

Open Windows Explorer and list the files in the current folder (.) :
C:\any\old\directory> START .

Connect to a new printer: (this will setup the print connection/driver )
START \\print_server\printer_name

Start an application and specify where files will be saved (Working Directory):
START /D C:\Documents\ /MAX "Maximised Notes" notepad.exe

START is an internal command.

Осуществляет старт работы заданного приложения или команды. Запуск выполняется в отдельном окне. Если не использовать никаких параметров, то предусматривается создание ещё отдельного окна КС.

Синтаксис

start [«заголовок»] [/d расположение] [/i] [/min] [/max] [{/separate | /shared}] [{/low | /normal | /high | /realtime | /abovenormal | belownormal}] [/wait] [/b] [название_документа] [параметры]

Расшифровка значений

«заголовок»

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

/d расположение

Здесь нужно установить, где именно находится интересующий каталог старта приложения или команды.

/i

Осуществляется предоставление стартовых установок Cmd.exe.

/min

Начало работы нового окна предусматривает тот факт, что оно будет находиться в свернутом виде.

/max

Аналогично предыдущему пункту, за исключение того, что старт производится в развернутом виде.

/separate

Для начала работы 16ти битных приложений применяется специальная область памяти.

/shared

Для начала работы 16ти битных приложений применяется специальная область памяти.

/low

Начало работы программы предполагает присвоение невысокого приоритета.

/normal

Начало работы программы предполагает присвоение стандартного приоритета.

/high

Начало работы программы предполагает присвоение наивысшего приоритета.

/realtime

Начало работы программы предполагает присвоение приоритета реального времени.

/abovenormal

Начало работы программы предполагает присвоение приоритета более обычного.

/belownormal

Начало работы программы предполагает присвоение приоритета менее обычного.

/wait

Старт работы программы предусматривает, что будет происходить ожидание завершения её деятельности.

/b

Начинается работа программы, когда новое окно КС не открывается. Если нужно закончить деятельность, то необходимо нажать сочетание CTRL+BREAK.

название_документа

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

параметры

Требуется установить параметры, используемые данным приложением в ходе его работы.

Настройка

  • Microsoft Windows 2000
  • Microsoft Windows XP
  • Microsoft Windows Servers
  • Microsoft Windows Vista
  • Microsoft Windows 7
  • Microsoft Windows 8
  • Microsoft Windows 10

Полезная информация

  • Синий экран смерти (BSOD)
    • Коды ошибок
    • Способы устранения
  • Командная строка (CMD)
    • Переменные
    • Команды
    • Примеры bat файлов
  • Примеры Rundll32.exe
  • Windows Script Host (WSH)
    • Объект WshShell
    • Объект FileSystemObject
    • Объект RegExp
    • Объект Dictionary
    • Объект Shell
    • Константы VBScript
    • Функции VBScript
    • Объект IE и WebBrowser
    • Объект WScript
    • Объект WshNetwork
  • Basic In/Out System (BIOS)
    • AMI bios
    • AWARD bios
    • Phoenix bios
    • UEFI bios
  • Реестр Windows
    • Хитрости реестра Windows
  • Скачать Live CD
  • Полезные статьи
    • Часто задаваемые вопросы
    • Стоит ли переходить на Windows 10?
    • Не открывается флешка на компьютере?
    • Как разбить жесткий диск на разделы?
    • Удалить баннер с рабочего стола
    • Лучшие бесплатные антивирусы 2016-2017 года
    • Не открывается Вконтакте и другие сайты
    • Как убрать всплывающие сайты и рекламу в браузере

START [«заголовок»] [/D путь] [/I] [/MIN] [/MAX] [/SEPARATE или 
 /SHARED] [/LOW или /NORMAL или /HIGH или /REALTIME или 
 /ABOVENORMAL или /BELOWNORMAL] [/WAIT] [/B] 
 [команда/программа] [параметры]

Эта команда позволяет запускать в отдельном окне любую программу с заданными исходными параметрами.

  • заголовок- заголовок программы, который будет отображаться в панели заголовка открытого для этой программы окна;

  • /D путь- указание на рабочую папку запускаемой программы, в которой хранятся все необходимые для ее загрузки файлы;

  • /I- запуск программы не в новой среде окружения, а в исходной среде, переданной интерпретатором команд CMD;

  • /B- настройка режима прерывания исполнения программы по нажатию сочетания клавиш Ctrl+C. Если данное приложение не обрабатывает нажатие клавиш Ctrl+C, приостановить его исполнение можно по нажатию клавиш Ctrl+Break;

  • /MIN- запуск программы в окне, свернутом в Панель задач;

  • /MAX- запуск программы в окне, развернутом во весь экран;

  • /SEPARATE- выполнить запуск 16-разрядного приложения Windows в отдельной области памяти;

  • /SHARED- выполнить запуск 16-разрядного приложения Windows в общей области памяти;

  • /LOW- запустить приложение с низким приоритетом на исполнение (idle);

  • /NORMAL- запустить приложение с обычным приоритетом на исполнение (normal);

  • /HIGH- запустить приложение с высоким приоритетом на исполнение (high);

  • /REALTIME- запустить приложение с приоритетом реального времени (realtime);

  • /ABOVENORMAL- запустить приложение с приоритетом выше среднего (abovenormal);

  • /BELOWNORMAL- запустить приложение с приоритетом ниже среднего (belownormal);

  • /WAIT- запустить приложение в режиме ожидания его завершения;

  • команда/программа- путь и имя самой команды или программы. Если при помощи команды START запускается внутренняя команда оболочки CMD либо пакетный файл, новое окно CMD будет запущено с ключом /K, другими словами, оно не будет закрыто по завершении сеанса работы программы. Если вы запускаете какое-либо другое приложение, для него будет открыто стандартное графическое окно Windows XP;

  • параметры- внешние параметры, ключи и переменные, передаваемые программе средой CMD при ее запуске.

ПРИМЕЧАНИЕ
Для вызова исполняемых файлов посредством открытия ассоциированных с ними типов файлов из окна командной консоли достаточно набрать в командной строке полное имя такого файла. Например, при вызове из окна Командная строка файла document.doc, ассоциированного в системе с программой Microsoft Word, Windows автоматически запустит Word на исполнение и загрузит в него этот файл.

При запуске 32-разрядного приложения с графическим интерфейсом из командной строки обработчик команд не ожидает завершения работы приложения перед закрытием его окна и возвратом к приглашению операционной системы. Этот принцип распространяется на все случаи запуска программ, кроме их вызова из пакетных файлов.

В случае если в командной строке не указано расширения файла, обработчик команд использует значение переменной среды PATHEXT с целью определить расширения имен исполняемых файлов и порядок поиска программы в файловой структуре диска. По умолчанию этой переменной присвоены значения .com; .exe; .bat; .cmd. Синтаксис записи значений для данной переменной аналогичен синтаксису для переменной PATH, то есть отдельные элементы разделяются точкой с запятой.

Если в процессе поиска исполняемого файла не было выявлено соответствий ни с одним из зарегистрированных в системе расширений, программа выполняет проверку соответствия указанного имени папки. Если имя папки соответствует указанному, то команда START запускает Проводник, открывающий эту папку для обзора.

К разделу

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Windows driver kit windows 10 1903
  • Kyocera 2040 driver windows 7
  • Как сделать автоматическое подключение к интернету на windows 11
  • Prtscr куда сохраняет на windows 10
  • Windows 10 упала скорость ssd