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 |
$$ | $ (dollar sign) | $l | < ( less-than sign) |
$a | & (ampersand) | $n | Current drive |
$b | (pipe) | $p | Current drive and path |
$c | ( (left parenthesis) | $q | = (equal sign) |
$d | Current date | $s | (single space) |
$e | Escape character, for formatting | $t | Current time |
$f | ) (right parenthesis) | $v | Windows version number |
$g | > (greater-than sign), karet |
prompt $p$g prompt $p$_$d$g prompt $n$g