Tandy 1000 MS-DOS Reference Manual page 54

Hide thumbs Also See for 1000 MS-DOS:
Table of Contents

Advertisement

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 attri-
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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents