Microsoft DOS prompt command

Quick links

About prompt

About prompt

C: promptThe prompt command allows you to change the MS-DOS prompt to display more or less information.


The prompt command is an internal command that is available in the below Microsoft operating systems.

All Versions of MS-DOS
Windows 95
Windows 98
Windows ME
Windows NT
Windows 2000
Windows XP
Windows 7


Changes the Windows command prompt.

PROMPT [text]

text Specifies a new command prompt.

The prompt can be made up of normal characters and the below special codes:

$Q = (equal sign)
$$ $ (dollar sign)
$T Current time
$D Current date
$P Current drive and path
$V Windows version number
$N Current drive
$G > (greater-than sign)
$L & (less-than sign)
$B | (pipe)
$H Backspace (erases previous character)
$E Escape code (ASCII code 27)
$_ Carriage return and linefeed

Type prompt without parameters to reset the prompt to the default setting.


prompt $t $d$_$p$g

Display the time and the date above your prompt when in DOS.

Additional information