Function Reference


_WinAPI_SetFileAttributes

Sets the attributes for a file or directory

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

Parameters

$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.
$FILE_ATTRIBUTE_READONLY
$FILE_ATTRIBUTE_HIDDEN
$FILE_ATTRIBUTE_SYSTEM
$FILE_ATTRIBUTE_ARCHIVE
$FILE_ATTRIBUTE_NORMAL
$FILE_ATTRIBUTE_TEMPORARY
$FILE_ATTRIBUTE_OFFLINE
$FILE_ATTRIBUTE_NOT_CONTENT_INDEXED

Return Value

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

Remarks

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

See Also

Search SetFileAttributes in MSDN Library.