Changes the Windows command prompt.
PROMPT [text]
text Specifies a new command prompt.
Prompt can be made up of normal characters and the following special codes:
$Q | = (equal sign) |
$$ | $ (dollar sign) |
$T | Current time |
$D | Current date |
$P | Current drive and path |
$V | Windows version number |
$N | Current drive |
$G | > (greater-than sign) |
$L | & (less-than sign) |
$B | | (pipe) |
$H | Backspace (erases previous character) |
$E | Escape code (ASCII code 27) |
$_ | Carriage return and linefeed |
Type PROMPT without parameters to reset the prompt to the default setting.
EXAMPLES
prompt $t $d$_$p$g - This
would display the time and the date above your prompt when in DOS.
APPEND | ARP | ASSOC | AT | ATTRIB | BREAK | CACLS | CALL | CD |
CHCP | CHDIR | CHKDSK | CHKNTFS | CLS | CMD | COLOR | COMMAND | COMP |
COMPACT | CONTROL | CONVERT | COPY | DATE | DEBUG | DEL | DELTREE | DIR 2 |
DIR ... | DISKCOMP | DISKCOPY | DOSKEY | ECHO | EDIT | EDLIN | ERASE | EXIT |
EXPAND | FC | FDISK | FIND | FOR | FORMAT | FTP | GRAFTABL | HELP |
IPCONFIG | LABEL | LOADFIX | MD | MEM | MKDIR | MODE | MORE | MOVE |
MSCDEX | NBTSTAT | NET | NETSTAT | NLSFUNC | NSLOOKUP | PATH | PATHPING | PAUSE |
PING | PROMPT | RD | REN | RENAME | RMDIR | ROUTE | SET | |
SETVER | SHARE | SHUTDOWN | SORT | SUBST | TIME | TREE | TYPE | UNLOCK |
VER | VERIFY | VOL | XCOPY |