Search notes:

%PROMPT%

The %PROMPT% environment variable specifies how the cmd.exe prompt is formatted.

Formatting codes

The formatting codes consist of a dollar sign followed by character.
Available formatting codes are returned with prompt /?.
These are:
Formatting code replaced with notes
$A &
$B |
$C (
$D Current date
$E Escape code (ASCII 27)
$F )
$G >
$H Backspace character (that erases previous character).
$L <
$M Remote name that is associated with current drive letter, or empty string Only when command extensions are enabled.
$N Current drive
$P Current drive and path
$Q =
$S A space (ASCII 32)
$T Current time
$V Windows version number
$_ Carriage return and linefeed
$$ $
$+ +…, each + represents pushed directory (see pushd) Only when command extensions are enabled.

Default value

The default value for %PROMPT% is $P$G (thus displaying the current drive/path and a > symbol.

Index