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► ◄Syntax►
────────────────────────────────────────────────────────────────────────────
PROMPT──Notes
Using the PROMPT command without the text parameter
When you use the PROMPT command without specifying a value for text, PROMPT
resets the command prompt to the default setting──the current drive letter
followed by a greater-than sign (>).
Using the $P value for text
If you include the $P character in the text parameter, MS-DOS reads your
disk after you enter each command to determine the current drive and path.
This can take extra time, especially for floppy disk drives.
Defining the MS-DOS command prompt in Windows
If you use Microsoft Windows 3.1, you can change the command prompt with the
WINPMT environment variable.
For example, suppose you want the following message to precede the MS-DOS
command prompt:
Type "exit" when you're ready to return to Windows.
To display this message, include the following command to your AUTOEXEC.BAT
file:
set winpmt=Type "exit" when you're ready to return to Windows.$_$p$g
♦