Chapter 6 / Command Reference
Examples
ere
s e
*.
1 s t
[ENTER
I
would be used after you combine
the
files A.lst and B.lst from
the
current
directory into a new file All.lst
on
a different direc-
tory.
It
would erase all files
with
the
extension .lst
in
the
cur-
rent
directory.
You
should make
sure
that
there
are
no
other
files you wish to keep
that
have
the
.lst extension.
Warning:
If
you include
an
extension, such as
the
.lst
used here, ERASE does not prompt you before erasing
the
files, regardless of whether use a wildcard.
It
prompts only when
you
use
the
full wildcard (*.*).
erase
\bin\user\mary\text.txt
[ENTERI
erases +he file Text.
txt
from
the
directory BIN \ USER\
MARY
on
the
current disk.
era
s e
b:
\
use
r \ J 0 h n \ * . * I
ENTER
I
tells
MS-DOS
to
delete
all
the
files
in
the
directory
\USER\JOHN
on
Drive
B.
MS-DOS asks:
Are
you
sure?
(VI
N)?
erase
b:
\bi
n\user
\mary
I
ENTER
I
tells MS-DOS to erase all files in
the
\BIN\
USER\MARY
directory on Drive
B.
MS-DOS prompts:
Are
yo
u
sur
e
(V
IN)?
era
s e f i 1e 2 I
ENTER
I
erases
the
file File2 from
the
current directory.
78
;
'I
, '
I \
....,....
, ,
--'
I I
'-J
, ,
I :