SYNTAX

    attrib [options] [<path>] ...


OPTIONS

-h (--help) bool

Display help.

-s (--set) enum

If specified, set this attribute for the given path(s). [readonly, hidden, system, archived] Can be specified more than once.

-c (--clear) enum

If specified, clear this attribute for the given path(s). It is an error for an attribute to be specified with both --set and --clear. [readonly, hidden, system, archived] Can be specified more than once.

-r (--recurse) bool

Recursively apply attribute changes to directories and their contents.

-k (--keep-going) bool

If specified, continue if an error is encountered while processing one of the paths.


ARGUMENTS

[<path>]

The file or directory. Can be specified more than once. [filename(s)]


DESCRIPTION

Change file system attributes.

Add or remove attributes from files or directories. For example:

  attrib --set readonly FILE
  attrib -s r FILE # Equivalent to the above
  
  attrib --recurse --set readonly --clear system --clear hidden FOLDER


COPYRIGHT

Copyright (c) 2011 Accenture. All rights reserved.