Name PROMPT
Abrv
Ver 2.0 ...
Type Int
Used to customize the DOS prompt.
Saves settings as an environment variable PROMPT.
Syntax PROMPT promptstring
Optional
Parameters
and Switches
promptstring Can include text and any metastring from table below as well as
any ANSI.SYS command strings (See ANSI COMMANDS.
If not present restores default: $N$G (C>).
Meta-
String
Description Example
$$ Dollarsign $
$B Vertical Bar |
$D Current date Tue 09-11-2001
$G Greater than >
$L Less than <
$N Current Drive letter C
$P Current Drive and path C:\DOS
$Q Equal sign =
$T DOS Version MS-DOS Version 6.0
$_ Carriage return and line feed -
moves cursor to first position of next line.
...
_
$E Escape character (for ANSI
commands)
$H Backspace character (erases prev. char.)
$ followed by any char not in table above is ignored.
Notes
1) A prompt stays active until DOS is restarted or
   a new PROMPT command is executed.
2) When a DOS window is opened in Windows, the prompt is changed
   to the value of the WINPMT environment variable (if defined).
See also
SET

© 2005 Prem Sobel. All Rights Reserved.