http://www.aros.orgAROS-ExecAROS-Exec ArchivesPower2People
kitty mascottop logo menu

Protect

Index Prev Next


Name

Protect

Synopsis

FILE/A,FLAGS,ADD/S,SUB/S,ALL/S,QUIET/S

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.

Inputs

FILE   --  Either a file, a directory or a pattern to match.
FLAGS  --  One or more of the following flags:

            S - Script
            P - Pure
            A - Archive
            R - Read
            W - Write
            E - Execute
            D - Delete

ADD    --  Allows the bits to be set and hence allowable.
SUB    --  Allows the bits to be cleared and hence not allowable.
ALL    --  Allows a recursive scan of the volume/directory.
QUIET  --  Suppresses any output to the shell.

Result

Standard DOS return codes.

Example

Protect ram: e add all

    Recurses the ram: volume and attaches the executable bit.

Copyright © 1995-2014, Het AROS Development Team. Alle rechten voorbehouden.
Amiga® is een merknaam van Amiga Inc. Alle andere merknamen behoren tot hun respectievelijke eigenaren.