PROMPT
Hides the current directory and replaces it with any text.
PROMPT [text]
Where:
text
- Specifies the text to insert.
If no parameters are specified, it reappears the current directory. Typing PROMPT $
will not display any text.
The following codes are used to insert special characters:
$A
-&
(ampersand).$B
-|
(pipe).$C
-(
(open parenthesis).$D
- current date (in dd/mm/yy or mm/dd/yy depending on locale).$E
- escape code.$F
-)
(closed parenthesis).$G
->
(greater than symbol).$H
- backspace (deletes previous character).$L
-<
(less than symbol).$N
- current drive.$P
- current directory.$Q
-=
(equals sign).$S
-$T
- current time.$V
- Windows version.$_
- new line.$$
-$
(dollar symbol).$+
- A number of+
(Displays more+
s depending on the depth of the PUSHDPUSHD command directory stack, and one character for each level in the stack. Displays an empty string if no directories have been stored withPUSHD
.)$M
- remote name (Displays the remote name associated with the current drive letter. Displays an empty string if the current drive is not a network drive).
Examples:
1. If I write:
prompt $_$v$_$g
then I will be displayed:
Microsoft Windows ver [Version x.x.xxxx]
>
And each time it will be spaced one line from the last command line.
2. Instead, writing:
prompt
will return to displaying the current directory.
Comments