What executable provides the Windows Command Prompt?
Answer
cmd.exe
Answer
cmd.exe
The executable that provides the Windows Command Prompt is cmd.exe. It is the Windows command processor: a shell program that interprets commands, runs built-in operations, launches external programs, and executes batch files.
Cmd.exe belongs to the Windows NT family and replaced COMMAND.COM as the command processor in the main Windows product line. Its ancestry reaches back to the command-line environments associated with DOS, but the NT implementation was developed as a separate system component. Modern Windows also includes PowerShell, which runs alongside cmd.exe rather than replacing it outright.
The Command Prompt interface may appear inside Windows Terminal or the older Windows Console, but those hosting applications are not the command processor itself. Conhost.exe supports console-window behavior, while cmd.exe interprets the commands typed into that session. Explorer.exe is the graphical Windows shell, not the command-line interpreter.
Cmd.exe supports redirection, pipelines, batch scripting, and command separators such as &, &&, and ||. On Windows XP and later, its maximum command-line length is 8,191 characters, a limit that can matter in scripts with long paths or many expanded variables.
Source: Wikipedia · fact-checked Sept. 2026