f$SetFileAttribute (f$DateiAttributSetzen)
f$SetFileAttribute (f$DateiAttributSetzen)
Set or remove the read-only attribute for a file by entering the complete file name including path.
Please note that, when entering a path in the file name, the character "\" must be entered twice ("\\").
Syntax: | Status = f$SetFileAttribute ( File , Readonly ) | ||
| Argument | Type | Meaning |
| File | String | Name of the file |
| Readonly | Integer | 1 – mark the file read-only |
Result: | Integer | Operation status: 1 – successful , otherwise 0 | |
Example: | File = 'C:\\Temp\\logfile.txt' Status = f$SetFileAttribute( File , 1 ) | ||