Cmd.exe


cmd.exe is the default command-line interpreter for OS/2, eComStation, Microsoft Windows, and the ReactOS operating systems. The name refers to its executable filename. It is also commonly referred to as cmd or the Command Prompt, referring to the default window title on Windows. The implementations differ on the various systems but the behavior and basic set of commands is generally consistent. is the counterpart of in DOS and Windows 9x systems, and analogous to the Unix shells used on Unix-like systems. The initial version of for Windows NT was developed by Therese Stowell.
Windows CE 2.11 was the first embedded Windows release to support a console and a Windows CE version of.
On Windows CE.NET 4.2, Windows CE 5.0 and Windows Embedded CE 6.0 it is also referred to as Command Processor Shell.
The ReactOS implementation of is derived from FreeCOM, the FreeDOS command line interpreter.

Operation

interacts with the user through a command-line interface. On Windows, this interface is implemented through the Win32 console. may take advantage of features available to native programs of its own platform. For example, on OS/2 and Windows, it can use real pipes in command pipelines, allowing both sides of the pipeline to run concurrently. As a result, it is possible to redirect the standard error stream.
Multiple commands can be processed in a single command line using the command separator.
For example:

C:\>CommandA && CommandB && CommandC

On Windows XP or later, the maximum length of the string that can be used at the command prompt is 8191 characters. On earlier versions, such as Windows 2000 or Windows NT 4.0, the maximum length of the string is 2047 characters. This limit includes the command line, individual environment variables that are inherited by other processes, and all environment variable expansions.
Quotation marks are required for the following special characters:
& < > ^ = ; ! ' +, ` ~

Internal commands

OS/2

The following is a list of the Microsoft OS/2 internal commands:
The following list of internal commands is supported by on Windows NT and later:
The following list of commands is supported by on Windows CE.NET 4.2, Windows CE 5.0 and Windows Embedded CE 6.0:
In addition, the command is available as an external command stored in.

ReactOS

The ReactOS implementation includes the following internal commands:
On Windows, is mostly compatible with but provides the following extensions over it:
Internal commands have also been improved: