Hardware Reference
In-Depth Information
Command
Function
Examples:
MKDIR APPS
creates a sub-directory named
APPS
within the
current
directory
(note that the
CHDIR
command is often used after
MKDIR
- having
created a new directory you will probably want to move to make
it the current directory before doing something with it!).
MD C:
\
DOS
\
BACKUP
creates a sub-directory named
BACKUP
within the DOS directory
of drive C:.
The
PATH
command may be used to display the current directory
path. Alternatively, a new directory path may be established
using the
SET PATH
command.
Examples:
PATH
displays the current directory path (a typical response would be
PATH=C:
\
WINDOWS
).
SET PATH=C:
\
DOS
makes the directory path C:
\
DOS.
PATH
The
PROMPT
command allows the user to change the system
prompt. The
PROMPT
command is followed by a text string which
replaces the system prompt. Special characters may be inserted
within the string, as follows:
$d
current date
$e
escape character
$g
>
$h
backspace and erase
$l
<
$n
current drive
$p
current directory path
$q
=
$t
current time
$v
DOS version number
$$
$
$
newline
Examples:
PROMPT $t$g
changes the prompt to the current time followed by a
>
.
PROMPT Howard Associates PLC $?
changes the prompt to Howard Associates PLC followed by a
carriage return and newline on whicha?isdisplayed.
PROMPT
restores the default system prompt (e.g.
C:
\
>
).
PROMPT
(
continued
)