Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
PROMPT
◄Notes► ◄Examples►
────────────────────────────────────────────────────────────────────────────
PROMPT
Changes the appearance of the command prompt.
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 MS-DOS version number.
Syntax
PROMPT [text]
Parameter
text
Specifies any text and information you want included in your system
prompt.
The following list shows the character combinations you can include
instead of, or in addition to, any character string(s) in the text
parameter. The list includes a brief description of the text or
information that each character combination adds to your command
prompt.
$Q = (equal sign)
$$ $ (dollar sign)
$T Current time
$D Current date
$P Current drive and path
$V MS-DOS version number
$N Current drive
$G > (greater-than sign)
$L < (less-than sign)
$B | (pipe)
$_ ENTER-LINEFEED
$E ASCII escape code (code 27)
$H Backspace (to delete a character that has been written to the
prompt command line)
Related Commands
For information about setting the current date and time, see the <DATE> and
<TIME> commands.
For information about ANSI escape sequences, see the <ANSI.SYS> topic.
♦