The prompt command lets you adjust how much information is shown in MS-DOS.

Availability

Prompt is an internal command that is available in the following Microsoft operating systems.

  • Availability

  • Prompt syntax

  • Prompt examples

  • All Versions of MS-DOS

  • Windows 95

  • Windows 98

  • Windows ME

  • Windows NT

  • Windows 2000

  • Windows XP

  • Windows 7

  • Windows 8

  • Windows 10

  • Windows 11

Prompt syntax

Windows Vista and later syntax

PROMPT [text]

[text] Specifies a new command prompt.

  • Windows Vista and later syntax.
  • Windows XP and earlier syntax.

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

If Command Extensions are enabled, the PROMPT command supports the following additional formatting characters:

Windows XP and earlier syntax

[text] specifies a new command prompt.

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

Prompt examples

prompt $t $d$_$p$g

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

  • How to change the prompt.
  • See our prompt definition for further information and related links on this term.