Radio Shack TRS-80 Trsdos & Disk Basic Reference Manual page 34

Micro computer system
Hide thumbs Also See for TRS-80:
Table of Contents

Advertisement

TRSDOS
Overview
File Specification
A
file
specification
(filespec)
is
the
way you
reference
a
particular
file,
whether
you're operating
under
TRSDOS, DISK
BASIC,
or
any
other
command
program
(e.g.,
TAPEDISK).
Disk
file
specifications
have
the following format:
name[/ext]
[.pw]
[:d]
where
name
is
the
file
name,
consisting
of
from
1
to 8
alphanumeric
characters,
the
first
of
which must
be
alphabetic
ext
is
an optional extension of the
name,
consisting
of
from
1
to 3
alphanumeric
characters,
the
first
of
which must
be
alphabetic.
The
extension,
if
used,
must
be preceded
by
a
slash
symbol.
pw
is
an
optional password,
consisting
of
from
1
to 8 alpha-
numeric
characters, the
first
of
which must
be
alphabetic.
The
password,
if
used,
must
be preceded
by
a
period symbol.
:d
is
an optional
drive specification,
with
d
equal
to 0,1,2
or
3,
depending on
which
drive
you
wish
to specify.
The
drive
specification,
if
used,
must
be preceded
by
a colon.
Do
not
embed
blanks
in a
file
specification.
If
you
do,
TRSDOS
will
terminate the
filespec at
the
first
blank;
if
the truncated
filespec
is
valid,
you
won't
receive
an
error
message.
Valid
file
names:
A
GAMES/BAS
PAYROLL/B
AS .SESAME
DRIVECHK:
1
AUG
1578
INVNTORY
SORTER/
VR1
SECRETS
.MYNAME
DRIVECHK:
2
TAXES/TXT
TEAP
ARTY:
1
DATA
11
SORTER/VR2
POETRY/TXT:
1
AUG3078/DAT.JQD
CHKWRITR/B AS
.VERSION2
To
take
a
completely
"filled
out"
filespec,
TAXES/TXT.TEAPARTY:
1
refers
to a
file
named
TAXES,
with
an extender
TXT,
and
a
password
TEAP ARTY.
This
file
is
referenced
to drive
1
.
If
you
are creating a
file
under
that
filespec,
it
will
be
placed
on
drive
1
.
If
you
are
reading or writing to the
file
specified,
TRSDOS
will
reference
drive
1
for
the
file.
3-6

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents