EasyManua.ls Logo

Commodore PC 40 - Page 152

Commodore PC 40
494 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
14 MS-DOS User's Reference
Using pathnames with
internal commands
IVhat
are external
:ommands?
Some internal
commands
can
use
paths
and
pathnames. Specifi-
cally, four
commands-copy,
dir,
del,
and
type-have
greater
flexibility
when
you
specify a
pathname
after
the
command.
The
formats
of
these
commands
are
as follows:
copy
pathname
patbname
If
the
second
pathname
is a
directory
(a
path),
MS-DOS
copies
all
the
files you specify in
the
first
pathname
into
that
directory, as
in
the
following example:
copy
\user\pete\*.*
sales
del
pathname
If
the
pathname
is a
directory
(a
path),
all
the
files in that direc-
tory
are
deleted.
If
you
try
to
delete
a path,
the
prompt
"Are
you
sure
(YIN)?"
is displayed. Type
Y(for
Yes)
to
complete
the
com-
mand,
or
N
(for
No)
to
stop
the command. Example:
del
\user\pete
dir
pathname
The
following
command
displays
the
directory
for a specific
pathname:
dir
\user\pete
type
pathname
You
must
specify a
pathname
(or
filename)
for this command.
MS·
DOS
then
displays this file
on
your
monitor
in response
to
the
type
command. Example:
type
\user\emily\report.nov
Any filename
with
an extension
of
.com,
.exe,
or
.
bat
is con-
sidered
an external command. For example, files
such
as
format. exe and diskcopy. exe are external commands. And, because
these
commands
are
also files, you
can
create
new
commands
and
add
them
to
MS·DOS. Programs that you
create
with
most
languages
(including assembly language) will
be
.exe
(executable)
files.
Note, however, that
when
you
use
an
external
command,
you
do
not
need
to
type its filename extension.
c;
c:
c:
[]
C:
Ci
Ci
C;
C'

Table of Contents

Related product manuals