PROMPT+Changing the System PromptAllows 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
file: /Techref/dos/command/prompt.htm, 2KB, , updated: 1999/2/20 10:24, local time: 2024/11/27 21:19,
3.144.235.138:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://sxlist.com/TECHREF/dos/command/prompt.htm"> dos command prompt</A> |
Did you find what you needed? |
Welcome to sxlist.com!sales, advertizing, & kind contributors just like you! Please don't rip/copy (here's why Copies of the site on CD are available at minimal cost. |
Welcome to sxlist.com! |
.