Computer Hope

Other Pages

Home
Site map
Computer help

Dictionary
News
Q&A
What's new

Tools

E-mail this page
Print Preview
Edit this page





Microsoft DOS prompt command

Quick links

About prompt
Availability
Syntax
Examples

About prompt

Allows you to change the MS-DOS prompt to display more or less information.

 

Availability

The prompt command is an internal command that is available in the below Microsoft operating systems.

All Versions of MS-DOS
Windows 95
Windows 98
Windows ME
Windows NT
Windows 2000
Windows XP

Index

Category:
MS-DOS

Companies:
Microsoft

Related Pages:
Operating systems

Resolved

Were you able to locate the answer to your questions?

Syntax

Changes the Windows command prompt.

PROMPT [text]

text Specifies a new command prompt.

The prompt can be made up of normal characters and the below special codes:

$Q = (equal sign)
$$ $ (dollar sign)
$T Current time
$D Current date
$P Current drive and path
$V Windows 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.

Examples

prompt $t  $d$_$p$g

Display the time and the date above your prompt when in DOS.

Additional information about changing the prompt as well as more examples can be found on document CH000484.

 

 

Home - Computer help - Contact - Dictionary - Links
Link to Computer Hope - Bookmark Computer Hope