Movatterモバイル変換


[0]ホーム

URL:


Skip to main content

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft EdgeMore info about Internet Explorer and Microsoft Edge
Table of contentsExit editor mode

start

Feedback

In this article

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

Syntax

start <"title"> [/d <path>] [/i] [{/min | /max}] [{/separate | /shared}] [{/low | /normal | /high | /realtime | /abovenormal | /belownormal}] [/node <NUMA node>] [/affinity <hexaffinity>] [/wait] [/b] [/machine <x86|amd64|arm|arm64>] [<command> [<parameter>... ] | <program> [<parameter>... ]]

Note

Themachine parameter is currently in PREVIEW for Windows 11 only. The parameter is availablebeginning with theWindows 11 Insider Preview Build 22557.This information relates to a prerelease product that may be substantially modified before it'sreleased. Microsoft makes no warranties, expressed or implied, with respect to the informationprovided here.

Parameters

ParameterDescription
"title"Specifies the title to display in theCommand Prompt window title bar.
/d<path>Specifies the startup directory.
/iPasses the Cmd.exe startup environment to the newCommand Prompt window. If/i isn't specified, the current environment is used.
{/min | /max}Specifies to minimize (/min) or maximize (/max) the newCommand Prompt window.
{/separate | /shared}Starts 16-bit programs in a separate memory space (/separate) or shared memory space (/shared). These options aren't supported on 64-bit platforms.
{/low | /normal | /high | /realtime | /abovenormal | /belownormal}Starts an application in the specified priority class.
/node<NUMA node>Leverages memory locality on NUMA (Non-Uniform Memory Architecture) nodes as a decimal integer. Two processes that communicate with each other through shared memory on the preferred NUMA node can minimize memory latencies while allocating memory from the same NUMA node when possible. They're free to run on processors outside the specified node.
/affinity<hexaffinity>Applies the specified processor affinity mask (expressed as a hexadecimal number) to the new application. Two programs are able to run on specific processor cores within the same NUMA node. This number can be changed to the processor-specific supported amount without having to change the affinity mask.
/waitStarts an application and waits for it to end.
/bStarts an application without opening a newCommand Prompt window. CTRL+C handling is ignored unless the application enables CTRL+C processing. Use CTRL+BREAK to interrupt the application.
/machine<x86 | amd64 | arm | arm64>Specifies the machine architecture of the application process.
[<command> [<parameter>... ] | <program> [<parameter>... ]]Specifies the command or program to start.
<parameter>Specifies parameters to pass to either the command or the program.
/?Displays help at the command prompt.

Remarks

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

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

  • If you run a 32-bit graphical user interface (GUI) application,cmd doesn't wait for the application to quit before returning to the command prompt. This behavior doesn't occur if you run the application from a command script.

  • If you're running on a 64-bit platform, the/separate and/shared parameters aren't supported.

  • If you run a command that uses a first token that isn't a command or the file path to an existing file with 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;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC

    Note the syntax is the same as the PATH variable, with semicolons (;) separating each extension.

  • start searches for a specified executable file, and if found, the executable launches regardless of the current working directory. When searching for an executable file, if there's no match on any extension,start checks to see if the name matches a directory name. If it does,start opensExplorer.exe on that path.

Examples

To start theMyapp program at the command prompt and retain use of the currentCommand Prompt window, type:

start Myapp

To view thestart command-line help information in a separate maximizedCommand Prompt window, type:

start /max start /?

Related links


Feedback

Was this page helpful?

YesNoNo

Need help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?

  • Last updated on

In this article

Was this page helpful?

YesNo
NoNeed help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?