FileSetAttribute()

For the given path, sets the file attributes.

FileSetAttribute( file=any, attribute=string );

Returns: void

Argument Description
file
any, required

file path

Alias: filePath, source, path

attribute
string, required

One of the following:

  • readOnly
  • normal

On Windows, the following additional attributes are supported (ignored on unix)

  • system
  • hidden
  • archive

Set the attribute to normal to make a file not read-only and not hidden.

Examples

filesetattribute("example.txt","readonly")

See also