PROMPT+Changing the System Prompt

Allows you to change the DOS prompt.

VERSION

PC-DOS 2.0+

MS-DOS equivalent: PROMPT (2.0+)

TYPE

Internal

SYNTAX

PROMPT [prompt]

OPTIONS

The prompt can be any literal message displayed on the

screen, and it can include any of the following special

characters:

$t Current time

$d Current date

$n Default drive

$p Current path

$v DOS version number

$g Greater-than character ()

$l Less-than character ()

$b Vertical bar (|)

$q Equal sign (=)

$_ Starts a new line (enters carriage-return/line-feed

sequence)

$h Backspaces and erases last character

$e ESCAPE character SCII 27)

EXAMPLES

PROMPT $t $b $d $b $n$g

BEFORE: A

AFTER: 12:09:33.55 | Thu 9-10-87 | A

PROMPT Command:

BEFORE: C

AFTER: Command:

PROMPT Good morning$_Today is $d

BEFORE: C

AFTER: Good morning

Today is Thu 9-10-87

PROMPT can also be used to display the current path at the

prompt before the greater-than sign by entering the command as

PROMPT $p$g

BEFORE: C

AFTER: C:\WP\LETTER

UNDO

Enter

PROMPT

(with no prompt string) to reset the DOS prompt to the default

prompt.

NOTE

All changes to the DOS prompt made with the PROMPT command

remain in effect until you reboot the computer or enter a new

PROMPT command. To maintain a consistent DOS prompt different

from the default prompt, enter the appropriate PROMPT command in

your AUTOEXEC.BAT file.

------------------------------------------------------------------

[For related topics, press R]

SEE ALSO

AUTOEXEC.BAT File

Batch Files

BREAK Command

COMMAND Command

CTTY Command

EXE2BIN Command

KEYB Command

KEYBxx Command

SET Command

SUBST Command