prompt
Change the appearance of the prompt. Type prompt
by itself (without text
) to reset the
prompt to its default setting, or use this syntax:
prompt [text
]
Text
can contain normal characters and the
following special codes:
Char |
Description |
Char |
Description |
---|---|---|---|
$_ |
Carriage return and linefeed |
$h |
Erase previous character |
$$ |
|
$l |
|
$a |
|
$n |
Current drive |
$b |
|
$p |
Current drive and path |
$c |
|
$q |
|
$d |
Current date |
$s |
(single space) |
$e |
Escape character, for formatting |
$t |
Current time |
$f |
|
$v |
Windows version number |
$g |
|