Hardware Reference
In-Depth Information
Command
Function
The most usual version of the PROMPT command is PROMPT
$p$g which displays the current directory/sub-directory and
helps to avoid confusion when navigating within DOS directories.
See RMDIR .
RD
The RENAME command allows the user to rename a disk file.
RENAME may be used with the * and ? wildcard characters in
order to rename all files for which a match occurs. RENAME may
be abbreviated to REN .
Examples:
RENAME PROG2.ASM PROG1.ASM
renames PROG1.ASM to PROG2.ASM on the disk placed in the
current (default) directory.
REN A: \ HELP.DOC HELP.TXT
renames the file HELP.DOC to HELP.TXT in the root directory of
the disk in drive A:.
REN B: \ CONTROL.* PROG1.*
renames all files with name PROG1 (regardless of type extension)
to CONTROL (with identical extensions) found in the root directory
of the disk in drive B:.
RENAME
The RMDIR command is used to remove a directory. RMDIR may
be abbreviated to RD . The command cannot be used to remove the
current directory and any directory to be removed must be empty
and must not contain further sub-directories.
Examples:
RMDIR ASSEM
removes the directory ASSEM from the current directory (note that
DOS will warn you if the named directory is not empty!)
RD C: \ DOS \ BACKUP
removes the directory ASSEM from the current directory (once
again, DOS will warn you if the named directory is not empty!)
RMDIR
The SET command is use to set the environment variables
(see PATH ).
SET
The TIME command allows the time to be set or displayed.
Examples:
TIME
displays the time on the screen and also prompts the user to make
any desired changes. The user may press <RETURN> to leave the
settings unchanged.
TIME 14:30
sets the time to 2.30 p.m.
TIME
( continued )
Search WWH ::




Custom Search