大网数据广告活动
Windows排障命令

start

· 52CE 我爱测

Reference article for the start command, which starts a separate Command Prompt window to run a specified program or command.

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: The machine parameter is currently in PREVIEW for Windows 11 only. The parameter is available beginning with the Windows 11 Insider Preview Build 22557. This information relates to a prerelease product that may be substantially modified before it's released. Microsoft makes no warranties, expressed or implied, with respect to the information provided here.

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 isn't specified, the current environment is used.
`{/min /max}`
`{/separate /shared}`
`{/low /normal
/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.
/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.
/machine `<x86 amd64
`[<command> [<parameter>... ] <program> [<parameter>... ]]`
<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. This applies to any file type that has a registered association, including URLs, which are automatically detected and opened in the default browser, and documents such as .txt or .pdf files, which are opened in their associated application.

  • 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 up cmd 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 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 information in a separate maximized Command Prompt window, type:

start /max start /?

To open a URL in the default browser, type:

start "Bing" "https://www.bing.com"

Related links

Source: Microsoft Learn / Windows Server documentation by Microsoft and contributors (upstream author metadata: robinharwood). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Server documentation
适用范围
Windows Server · Source date 04/16/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。