|
PROMPT
Changes the Windows command prompt.
Syntax
PROMPT [text]
Key
text : a text string.
The prompt text can be made up of normal characters and the
following special codes:
$A & (Ampersand)
$B | (pipe)
$C ( (Left parenthesis)
$D Current date
$E Escape code (ASCII code 27)
$F ) (Right parenthesis)
$G > (greater-than sign)
$H Backspace (to delete a character that has been
written to the prompt command line)
$L < (less-than sign)
$M Display the remote name for Network drives
$N Current drive
$P Current drive and path
$Q = (equal sign)
$S (space)
$T Current time
$V Windows NT version number
$_ Carriage return and linefeed
$$ $ (dollar sign)
$+ Zero or more plus sign (+) characters depending upon
the depth of the pushd directory stack, one character
for each level pushed.
You can customize the command prompt to display any text you
want, including such information as the name of the current
directory, the time and date, and the Windows version
number.
Examples
Display the UNC path whenever you are using a network drive
PROMPT $M$_$P$G
The following example sets the command prompt to display the
current drive and path followed by the greater-than symbol
(>):
PROMT $p$g
Cmd Commands
|