Function Reference


Sets the attributes for a file or directory

#include <WinAPIFiles.au3>
_WinAPI_SetFileAttributes ( $sFilePath, $iAttributes )


$sFilePath The name of the file or directory whose attributes are to be set.
$iAttributes The file attributes to set for the file. This parameter can be one or more of the following values.

Return Value

Success: True.
Failure: False, call _WinAPI_GetLastError() to get extended error information.


Not all attributes are supported by this function. For more information, see MSDN library.

See Also

Search SetFileAttributes in MSDN Library.