Skip to main content
Skip table of contents

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
0 – remove read-only attribute from file

Result:

Integer

Operation status: 1 – successful , otherwise 0

Example:

File = 'C:\\Temp\\logfile.txt'

Status = f$SetFileAttribute( File , 1 )

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.