Starts a separate Command Prompt window to run a specified program or command.

For examples of how to use this command, see Examples.

Syntax

start ["<Title>"] [/d <Path>] [/i] [{/min | /max}] [{/separate | /shared}] [{/low | /normal | /high | /realtime | /abovenormal | belownormal}] [/affinity <HexAffinity>] [/wait] [/b {<Command> | <Program>} [<Parameters>]]

Parameters

Parameter Description

"<Title>"

Specifies the title to display in the Command Prompt window title bar.

/d <Path>

Specifies the startup directory.

/i

Passes the Cmd.exe startup environment to the new Command Prompt window. If /i is not specified, the current environment is used.

{/min | /max}

Specifies to minimize (/min) or maximize (/max) the new Command Prompt window.

{/separate | /shared}

Starts 16-bit programs in a separate memory space (/separate) or shared memory space (/shared). These options are not supported on 64-bit platforms.

{/low | /normal | /high | /realtime | /abovenormal | /belownormal}

Starts an application in the specified priority class. Valid priority class values are /low, /normal, /high, /realtime, /abovenormal, and /belownormal.

/affinity <HexAffinity>

Applies the specified processor affinity mask (expressed as a hexadecimal number) to the new application.

/wait

Starts an application and waits for it to end.

/b

Starts an application without opening a new Command Prompt window. CTRL+C handling is ignored unless the application enables CTRL+C processing. Use CTRL+BREAK to interrupt the application.

/b {<Command> | <Program>}

Specifies the command or program to start.

<Parameters>

Specifies parameters to pass to the command or program.

/?

Displays help at the command prompt.

Remarks

  • You can run nonexecutable files through their file association by typing the name of the file as a command.

  • When 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. This prevents users from picking up cmd from the current directory.

  • When 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.

  • When 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:

    .COM;.EXE;.BAT;.CMD 
    
    Note that the syntax is the same as the PATH variable, with semicolons separating each extension.

  • When it searches for an executable file, if there is no match on any extension, start checks to see if the name matches a directory name. If it does, start opens Explorer.exe on that path.

Examples

To start the Myapp program at the command prompt and retain use of the current Command Prompt window, type:

start myapp 

To view the start command-line help topic in a separate maximized Command Prompt window, type:

start /max start /?

Additional references