GetFileAttributes Method (Shell Object)
Returns the attributes of a specified file or folder. strFile The full path and name of a file or folder to retrieve the attributes. Returns a combination of the following values. Value Description 0 Normal 1 Read-only 2 Hidden 4 System 8 Volume 16 Directory 32 Archive 1024 Alias 2048 Compressed Supported on EmEditor Professional Version 22.1 or later.[JavaScript]
nAttr = shell.GetFileAttributes( strFile );
[VBScript]
nAttr = shell.GetFileAttributes( strFile )
Parameters
Examples
[JavaScript]
nAttr = shell.GetFileAttributes( "C:\\\\Test\\\\file.txt" );
[VBScript]
nAttr = shell.GetFileAttributes( "C:\\Test\\file.txt" )
Return Value
Version