Quote from the manual:
Sets the attributes of a file.
SETFILEATTR ("file name", attributes)
Identifies the file of which you want to set the attributes.
Attributes to set for the file. The attributes can be one or more of the following values:
1 Read only. The file or directory is read-only. Applications can read the file but cannot write to it or delete it. In the case of a directory, applications cannot delete it.
2 Hidden. The file or directory is hidden. It is not included in an ordinary directory listing.
so this would make the testfolder folder on c: hidden.
$Result = SetFileAttr("c:\testfolder", 2)
- Chuck Norris once sold ebay to ebay on ebay.