Command Prompt (Windows)
Infobox Windows component
name = Command Prompt
logo_size = 64px
caption = Command Prompt in
Windows NT- Windows CE- OS/2
Windows PowerShell- Batch file
command line interpreteron OS/2, Windows CEand on Windows NT-based operating systems (including Windows 2000, XP, Vista, Server 2003 and Server 2008). It is the analog of
COMMAND.COM MS-DOSand Windows 9xsystems, or of the Unix shells used on Unix-likesystems.
Therese Stowelldeveloped the initial version of
cmd.exefor Windows NT. [cite book |title=Showstopper! The Breakneck Race to Create Windows NT and the Next Generation at Microsoft |first=G. Pascal |last=Zachary |authorlink=G. Pascal Zachary |year=1994 |publisher=Warner Books |id=ISBN 0-02-935671-7] Although some old DOS commands are not supported or have been changed (e.g. the functionality of
was rolled into
rdin the form of the /s parameter),
cmd.exestill has a greater number of built-in commands.
Both the OS/2 and the Windows NT versions of
cmd.exehave more detailed error messages than the blanket "Bad command or file name" (in the case of malformed commands) of command.com. In the OS/2 version of
cmd.exe, errors are reported in the current language of the system, their text being taken from the system message files. The help command can then be issued with the error message number to obtain further information.
cmd.exe, which remains part of
Windows Vistaand Windows Server 2008for backward compatibility, will be supplemented with Windows PowerShell, Microsoft's new extensible command line shell and task-based scripting technology.
, which is a
cmd.exeis a native program for the platform. This allows it to take advantage of features available to native programs on the platform and not available to DOS programs. For example, since
cmd.exeis a native text-mode application on
OS/2, 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 in
COMMAND.COMuses temporary files, and runs the two sides serially, one after the other.)
cmd.exeis a Windows program that acts as a DOS-like command line interpreter. It is generally compatible, but provides extensions which address the limitations of
ENDLOCALcommands limit the scope of changes to the environment
GOTOlabels lessen the need for individual batch files to perform parts of a task.
* filename-parsing extensions to the
SETcommand are comparable to
* an expression-evaluation extensions is also provided in the
* an expansion of the
FORcommand to support parsing files and arbitrary sets in addition to filenames.
* use of arrow keys to scroll through command history (provided by
* off-by-default path completion capabilities similar to
* a directory stack accessible with the
IFcan perform case-insensitive comparisons and numeric equality and inequality comparisons in addition to case-sensitive string comparisons
The extensions can be disabled, providing a stricter compatibility mode.
Batch fileDescription of writing scripts in the shell
Comparison of computer shells
List of DOS commands
* [http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/cmd.mspx?mfr=true MSDN Documentation for cmd.exe on Windows XP]
* [http://www.dostips.com/DtTutoFunctions.php DOS Batch - CALL Functions and Recursion]
Wikimedia Foundation. 2010.
Look at other dictionaries:
Command prompt — may refer to: a feature of the command line interface, see Command line interface#Command prompt Command line interpreter, a kind of text based user interface Command Prompt, the command line interpreter in Windows operating systems This… … Wikipedia
Command Prompt — For other uses, see Command prompt (disambiguation). CMD redirects here. For other uses, see CMD (disambiguation). Command Prompt A component of Microsoft Windows … Wikipedia
Command prompt — Interface en ligne de commande Une interface en ligne de commande est une interface homme machine dans laquelle la communication entre l utilisateur et l ordinateur s effectue en mode texte : l utilisateur tape du texte au clavier pour… … Wikipédia en Français
Windows Me — Part of the Microsoft Windows family … Wikipedia
COMMAND.COM — Developer(s) Seattle Computer Products, Microsoft Corporation, IBM, Novell and several others. Operating system DR DOS, FreeDOS, MS DOS, Novell DOS, OpenDOS, PC DOS, PTS DOS, ROM DOS, 86 DOS, Microsoft Windows (Windows 95 Wi … Wikipedia
Windows PowerShell — Screenshot of a sample PowerShell session … Wikipedia
Windows 9x — Windows 4.x redirects here. For the operating system in the NT family, see Windows NT 4.0. Windows 9x Screenshot of Windows 95, the first version of Windows in the 9x series Company / developer … Wikipedia
Windows PowerShell — Capture d écran d une s … Wikipédia en Français
Windows Recovery Environment — (WinRE) is a set of tools included in the Windows Vista and Windows Server 2008 operating systems to help diagnose and recover from serious errors which may be preventing Windows from booting successfully. WinRE may be installed to the hard disk… … Wikipedia
Windows SteadyState — is a tool developed by Microsoft that gives administrators enhanced options for configuring shared computers, such as hard drive protection and advanced user management. It is primarily designed for use on computers shared by multiple people,… … Wikipedia