agamemnon
Feb 7 2004, 03:05 AM
just a little something.
you can store data in %prompt%, this becomes pretty useful in batch programming as variables aren't really allowed:
| QUOTE |
set prompt=%random% echo %prompt%
|
to restore the prompt:
some stuff you might find interesting for just playing around with the prompt, though it's just superficial and pretty pointless:
| QUOTE |
Changes the cmd.exe command prompt.
PROMPT [text]
text Specifies a new command prompt.
Prompt 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 (erases previous character) $L < (less-than sign) $N Current drive $P Current drive and path $Q = (equal sign) $S (space) $T Current time $V Windows XP version number $_ Carriage return and linefeed $$ $ (dollar sign)
If Command Extensions are enabled the PROMPT command supports the following additional formatting characters:
$+ zero or more plus sign (+) characters depending upon the depth of the PUSHD directory stack, one character for each level pushed.
$M Displays the remote name associated with the current drive letter or the empty string if current drive is not a network drive.
|
-ed.