val = Pm.FileGetAttr(sFile, nMask)
|sFile||(String) The file whose attributes have to be obtained. If a full path is not entered, it is completed relatively according to the application file folder. |
It is recommended to use the PROMOTIC path syntax - see PROMOTIC path to files and folders.
|nMask||(Long) Determines which attributes have to be returned. For example, 1+2 returns the attributes "archive" and "read only".|
1 - The attribute "archive" is returned.
2 - The attribute "read only" is returned.
4 - The attribute "hidden" is returned.
Dim sAttr, sFile, nAttr
sFile = "#app:file.txt"
nAttr = Pm.FileGetAttr(sFile, 1+2)
If nAttr >= 0 Then
'When the attributes were get OK.