Type: Internal (2.0 and later)
PROMPT [prompt text][options ]
Purpose: Changes the DOS command prompt.
You can change the DOS prompt (the indicator that DOS is ready for input)
almost any type of special prompt you want. For example, you can use
command to make the prompt display the current time, the date, or the
directory. You can also use combinations of the special prompt
create custom prompts.
For more information on the many uses of the PROMPT command, refer to
Tips for Advanced Users.
If you use the PROMPT command with no options , the prompt will be set to
default prompt (the current drive letter and a greater-than symbol). By
the characters indicated in the following list, you can create a great
of prompts (each must be preceded by a dollar sign):
To change the prompt to display the current drive and directory and a
greater-than symbol, enter
You can also create more complicated prompts. For example, to use the
prompt as above, with two added spaces and the characters TIME= followed
display of the current time, enter
prompt $p$g TIME=$t
The resulting prompt (if you are working in the DOS directory on drive C)
look like this:
Back to the