![]() |
![]() |
CorelScriptTools.FileAttr
Function FileAttr(FolderFile As String) As Long
Member of CorelScriptTools
The FileAttr method returns a files or folders attributes.
The FileAttr method returns one of the following values:
If mysetup.txt is read-only, hidden, and a system file, retval equals 7:
In cases where multiple attributes are returned, you can use the AND operator to determine specific attributes. To determine if mysetup.txt was a read-only file you could use the following syntax:
1 is the read-only attribute. The variable readOnly is assigned a string based on bitwise comparison. In this case, readOnly is assigned Yes.
![]() |
![]() |
![]() |
Copyright 2007 Corel Corporation. All rights reserved.