GetFileAttributes()
Syntax
Attributes = GetFileAttributes(Filename$)Description
Returns the attributes of the given Filename$. The Attributes are a combinations of the following values:#PB_FileSystem_Hidden : File is hidden #PB_FileSystem_Archive : File has been archived and not changed since the last time #PB_FileSystem_Compressed: File is compressed #PB_FileSystem_Normal : Normal attributes #PB_FileSystem_ReadOnly : File is in readonly mode #PB_FileSystem_System : File is a system fileTo check if one attribute is actually set, just use the '&' (binary AND) and the attribute constant value:FileAttributes = GetFileAttributes("C:\Text.txt") If FileAttributes & #PB_FileSystem_Hidden Debug "This file is hidden !" EndIf
Supported OS
All