Example usage for cmd.
cmd /c echo Build completeStart a new command interpreter with execution, environment and window options.
cmd [/c|/k] [/s] [/q] [/d] [/a|/u] [/t:{<b><f> | <f>}] [/e:{on | off}] [/f:{on | off}] [/v:{on | off}] [<string>]The linked Microsoft Learn article is the upstream authority. Availability may depend on Windows release, role, optional feature or interactive tool context.
Example usage for cmd.
cmd /c echo Build complete| Option / clause | Description |
|---|---|
/c <string> | Run the command and then exit the command interpreter. |
/k <string> | Run the command and keep the interpreter open. |
/d | Disable AutoRun commands from the registry. |
/q | Turn command echo off. |
/s | Apply quote-processing rules with /c or /k. |
/a /u | Choose ANSI or Unicode output for internal commands. |
/e:on|off /v:on|off /f:on|off | Control command extensions, delayed expansion and filename completion. |
/t:{<b><f> | Microsoft documents this switch; use the linked reference for accepted values, effects and version limits. |
/? | Display command help or the supported command-line usage. |
Value | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
0 | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
1 | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
2 | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
3 | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
4 | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
5 | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
6 | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
7 | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
8 | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
9 | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
b | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
<f> | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.