Help of the DOS Command PROMPT

Changes the cmd.exe command prompt.:

PROMPT [text]

Specifies a new command prompt.

Prompt can be made up of normal characters and the following special codes:


& (Ampersand)


( (Left parenthesis)


Current date


Escape code (ASCII code 27)


) (Right parenthesis)


> (greater-than sign)


Backspace (erases previous character)


< (less-than sign)


Current drive


Current drive and path


= (equal sign)




Current time


Windows version number


Carriage return and linefeed


$ (dollar sign)

If Command Extensions are enabled the PROMPT command supports the following additional formatting characters:


zero or more plus sign (+) characters depending upon the depth of the PUSHD directory stack, one character for each level pushed.


Displays the remote name associated with the current drive letter or the empty string if current drive is not a network drive.


Above text is generated from DOS/Windows command help and re-formmatted for PDF/HTML View.