EasyManua.ls Logo

Commodore PC - Attrib

Commodore PC
414 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...
n
Attrib
Purpose:
Sets
or
resets
the
read-only
attribute
of
a
file,
or
displays
the
attri
butes
of
a
file.
Syntax:
attrib
[±r]
[±a]
\drive\pathname
Comments:
^^^
If
an
application
opens
a
file
with
read
and
write
permission,
[)
attrib
forces
read-only
mode
to
allow
file
sharing
over
a
network.
+
r
sets
the
read-only
attribute
of
a
file.
f~*)
r
disables
read-only
mode.
+
a
sets
the
archive
attribute
of
a
file.
^^
a
clears
the
archive
attribute
of
a
file.
n
MS-DOS
Commands
27
Attrib
[drive.]pathname
specifies
the
name
of
the
drive
and
the
full
/^\
pathname
of
the
file
you
want
to
reference.
The
backup,
restore,
and
xcopy
(mcopy)
commands
use
the
archive
attribute
to
control
a
selective
backup/restore/xcopy
on
^"^
files
that
have
been
modified.
You
can
use
the
+
a
and
-a
options
to
select
files
that
you
want
to
back
up
with
the
backup
/m
switch,
or
copy
with
the
xcopy
(or
mcopy)
/m
or
/a
>-v
switches.
To
display
the
attribute
of
a
specific
file
on
the
default
drive,
type
the
attrib
command
followed
by
the
pathname
of
the
file.
To
/—s
print
the
attributes
of
all
files
in
a
specific
directory,
use
the
wild-
card
abbreviation
*.*
in
the
pathname.
Examples:
The
following
example
gives
the
file
report,
txt
read-only
permission:
f^]
attrib
+r
report.txt
Suppose
you
want
to
use
the
xcopy
command
to
copy
all
the
files
f"**\
in
the
default
directory
of
drive
A,
except
for
those
that
have an
extension
oi.bak,
to
drive
B.
You
would
type
the
following:
--■k
attrib
+a
a:*.*
attrib
-a
a:*.bak
Changing
read
and
write
permission

Related product manuals