SetFileAttributes Method (Shell Object)¶
Sets the attributes of a specified file or folder. strFile The full path and name of a file or folder to set the attributes. nAttr A combination of the following values. Value Description 0 Normal 1 Read-only 2 Hidden 4 System 32 Archive Supported on EmEditor Professional Version 22.1 or later.¶
[JavaScript]¶
shell.SetFileAttributes( strFile, nAttr );
[VBScript]¶
shell.SetFileAttributes strFile, nAttr
Parameters¶
Examples¶
[JavaScript]¶
shell.SetFileAttributes( "C:\\\\Test\\\\file.txt", 1 );
[VBScript]¶
shell.SetFileAttributes "C:\\Test\\file.txt", 1
Version¶