EasyManua.ls Logo

Tandy 1000 MS-DOS - Page 54

Default Icon
392 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...
Chapter 6 /
Command
Referem;e
ATTRIB
External
G-~l
',3.2)
! ATTRIB
[read][archive]
pathname
Sets
or
resets
the
read-only
and
archive
attributes
of a file; dis-
plays
the
attributes
of a file.
Parameters
read
can
be
either
+R or -
R.
+ R
sets
the
read-only
attribute
of a file to ON. - R
sets
the
read-only
attribute
of a file to OFF.
archive
can
be
either
+ A or -
A.
+A
sets
the
archive
attribute
of a file to ON. - A
sets
the
archive
attribute
of a file to OFF.
path
name is
the
path
to
the
file you
wish
to reference.
Notes
and
Suggestions
If
an
application opens a file
with
read
and
write
permission,
ATTRIB
can
force a read-only condition to allow file
sharing
over a network.
To
display
the
attribute
of a specific file,
type
at
t r 1 b
pa
t h
name
[
ENTER
I
The
wildcard
characters
"'.
'"
can
be
used
to
print
the
a
ttri-
butes
of
all
files on a specific drive.
If
you
omit
the
optional
parameters,
ATTRIB displays
the
attribute
settings
of
the
file specified by pathname.
Example
attrib
+r
myflle.txt
turns
on
the
read-only
attribute
of Myfile.txt.
attrlb
+a
myflle.txt
turns
on
the
archive
attribute
of Myfile.txt.
40

Table of Contents