Protect
Index Prev Next
Synopsis
FILE/A,FLAGS,ADD/S,SUB/S,ALL/S,QUIET/S,GROUP/K,OTHER/K
Function
Add or remove protection bits from a file or directory.
Protect allows the use of pattern matching and recursive directory
scans to protect many files/directories at any one time.
Result
Standard DOS return codes.
Example
Protect ram: e add all
Recurses the ram: volume and attaches the executable bit.
Notes
Owner RWED bits are active low; group and other RWED bits
are active high. Without ADD or SUB, FLAGS replace the protection
word supplied to dos.library/SetProtection(). When FLAGS and
GROUP/OTHER are omitted, owner RWED is denied. With
security.library resident, DOS applies its normal
LIMITDOSSETPROTECTION policy to group/other rights.
Explicit GROUP/OTHER changes use secSetProtection().