SetAttr Statement Example

This example uses the SetAttr statement to set attributes for a file.

SetAttr "TESTFILE", vbHidden   ' Set hidden attribute.
SetAttr "TESTFILE", vbHidden + vbReadOnly   ' Set hidden and read-only 
   ' attributes.