SetFileAttributes

SetFileAttributes

What to use it for

Prerequisites for usage

Essential properties to set

SetFileAttributes is an Activity to change or set the attributes of a file, such as whether the file is read-only, compressed, encrypted, hidden, etc.

Do not ever use this Activity, unless you know exactly what you are doing and it is absolutely necessary.

  

Misc

OptionWhat is itHow to use it

File path


 

The full path to the file of which you want to set the properties.

Enter a path to the file, that includes file name and extension.

You can enter the following:

  • Absolute folder path.
  • Relative folder path (not recommended).
  • VisualBasic expression that results in a folder path.

Recommended: Enter an absolute path that includes file name and extension.

 File attribute


 

List of file attributes that you can change.

Select one of the following:

  • Read only
  • Hidden
  • System
  • Directory
  • Archive
  • Device
  • Normal
  • Temporary
  • Sparse file
  • Reparse point
  • Compressed
  • Offline
  • Not content indexed
  • Encrypted
  • Integrity stream
  • No scrub data

 Add or replace


 

Option to indicate whether you are adding a new attribute to the current attributes of a file, or are replacing a current attribute.
  • Add (default)
  • Replace
Display nameName of the Activity.Leave at default, or edit the name to reflect what file attributes are going to be changed.

File system Activities