Name

cmd

Synopsis

cmd [options] [/C | /K [/S] command]

Start a new Windows 2000 command interpreter. If command is specified, that command is executed. Enclose multiple commands in quotation marks. See the cmd /? documentation for other features (e.g., command /path completion, delayed environment variable expansion, and so on).

Use the exit command to end a command interpreter session.

Options

/C | /K [/S]

Carry out the specified command, retaining (/C ) or terminating ( /K) the command interpreter afterward. With either /C or /K, /S says to process quotes in the command string before execution. (Usually they are preserved.)

/Q

Disable command echoing (see echo OFF, later in this book).

/E:ON | OFF

Enable/disable command interpreter extensions. Set the default by the value of the HKCU\ or HKLM\ Software\Microsoft\Command Processor\Enable Extensions registry key (enabled by default).

/A | /U

Format command output as ANSI (default) or Unicode, respectively.

/D

Disable registry autorun commands in the HKLM\ or HKCU\Software\Microsoft\Command Processor\Autorun registry key.

Get Windows 2000 Commands Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.