This should work:
SuperStrict ?Win32 Import Pub.Win32 'Import WinAPI Libraries and Functions ? Print IsFileHidden("C:\Temp\icon.ico") Function IsFileHidden%( pFilepath$ ) ?Win32 If (GetFileAttributesW( pFilePath) & FILE_ATTRIBUTE_HIDDEN) Then Return True ? EndFunction Function IsSystemFile%( pFilepath$ ) ?Win32 If (GetFileAttributesW( pFilePath) & FILE_ATTRIBUTE_SYSTEM) Then Return True ? EndFunctionI should perhaps point out that the function is only available on Windows 2000/XP/Vista PCs and so will not work on Windows 9X/NT.