We can customize our command prompt by utilizing these special codes in the prompt line. The most common syntax is, prompt $p$g, which returns the following: A:\>
Using the prompt commands below, experiment using each function separately or together.
| Prompt command | Displays |
|---|---|
| $$ | $, dollar sign character |
| $b | |, pipe character (located to the upper right on the keyboard) |
| $d | the date (according to the system clock) |
| $e | the ESCAPE character |
| $g | >, the greater- than character |
| $h | backspace (erase previous character) |
| $l | <, Less-than character |
| $n | The logged disk drive character |
| $p | The logged disk drive and subdirectory |
| $q | =, equal-sign character |
| $t | the current time (according to the system clock) |
| $v | DOS version |
| $_ | Carriage return/linefeed (new line) |
| Batch commands | Displays |
|---|---|
| @echo on | returns line to the screen (default) |
| @echo off | does not return line to the screen |
| break on | Enables break function, stops execution of commands in batch files and other commands when CTRL+C is pressed. |
| break off | Disables the break function (default) |