Quincy Center for Technical Education
Computer Technology Department

Cmd

Starts a new instance of the Windows 2000 command interpreter, Cmd.exe.

A command interpreter is a program that displays the command prompt at which you type commands. Use the exit command to stop the new command interpreter and return control to the old one.

cmd [ [/c | /k] [/q] [/a | /u] [/t:fg] [/x | /y] string]

Parameters

/c

Carries out the command specified by string and then stops.

/k

Carries out the command specified by string and continues.

/q

Turns the echo off.

/a

Creates ANSI output.

/u

Creates Unicode output.

/t:fg

Sets the foreground and background colors. (For more information, click color in the Related Topics list.)

/x

Enables extensions to the Windows 2000 version of Cmd.exe, to provide a richer shell programming environment. The following commands use the extensions: del (erase), color, cd (chdir), md (mdir), prompt, pushd, popd, set, setlocal, endlocal, if, for, call, shift, goto, start, assoc, and ftype. For details, see the Help for each command.

/y

Disables extensions to the Windows 2000 version of Cmd.exe, for backward compatibility reasons. The extensions are enabled by default.

string

Specifies the command you want to carry out.