# Command: prompt

      PROMPT changes the way command prompt appears.
      PROMPT is a BATCH-FILE / AUTOEXEC.BAT command.
      It can also be used in command line.

## Syntax:

      PROMPT [Options] [text]

      text    Specifies a new command prompt.

#### [Main menu] [top] (Syntax) [Options] [Comments] [Examples] [See also] [File]

## Options:

      Prompt can be made up of normal characters and the following special
      codes:

      $$   $ (dollar sign)
      $_   Carriage return and linefeed
      $B   | (pipe)
      $D   Current date
      $E   Escape code (ASCII code 27)
      $G   > (greater-than sign)
      $H   Backspace (erases previous character)
      $L   < (less-than sign)
      $N   Current drive
      $P   Current drive and path
      $Q   = (equal sign)
      $T   Current time
      $V   the FreeDOS command shell version number

#### [Main menu] [top] [Syntax] (Options) [Comments] [Examples] [See also] [File]

## Comments:

      Type PROMPT without parameters to reset the prompt to the default
      setting. PROMPT can also be used outside a batch file.
      When NANSI.SYS is loaded, PROMPT can also use different foreground /
      background colours with the setting: prompt $e[#;#;#m.
      PROMPT is a command internal to command.com and needs no other file
      in order to work.

#### [Main menu] [top] [Syntax] [Options] (Comments) [Examples] [See also] [File]

## Examples:

      IN A .BAT FILE / AUTOEXEC.BAT:
        prompt $p$g            This is the same as the default setting
        prompt $p$g Please enter a command!
      When NANSI.SYS is loaded, you can also change the colours:
        prompt $e[1;33;44m for bold / yellow /blue.

#### [Main menu] [top] [Syntax] [Options] [Comments] (Examples) [See also] [File]

## See also:

      autoexec.bat
      batch files
      nansi.sys

#### [Main menu] [top] [Syntax] [Options] [Comments] [Examples] (See also) [File]

## File:

      Please read this command's lsm file also.
      You will find the updated version (internet) here and
      the version described in this manual page here.
      The lsm file contains information about the name of the programmer,
      the download site, and some other command related information.

#### [Main menu] [top] [Syntax] [Options] [Comments] [Examples] [See also] (File)

      Copyright © 2003 Robert Platt, updated 2007 by W. Spiegl.

      This file is derived from the FreeDOS Spec Command HOWTO.
      See the file H2Cpying for copying conditions.