Site hosted by Angelfire.com: Build your free website today!

MS-DOS Internal Commands

The PROMPT Command

Description:

Changes the MS-DOS command prompt.

Command Syntax:

PROMPT [text]

Explanation of Syntax:

[text] Specifies a new command prompt.

Prompt can be made up of normal characters and the following special codes:
$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)
$H Backspace (erases previous character)
$E Escape code (ASCII code 27)
$_ Carriage return and linefeed

Type PROMPT without parameters to reset the prompt to the default setting.

Command Use:

This command can be used at the command prompt, in the config.sys file and in batch files.