Funktionreferenz


_WinAPI_SetFileAttributes


Sets the attributes for a file or directory

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

Parameter

$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

Rückgabewert

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

Bemerkungen

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

Siehe auch

Suche nach SetFileAttributes in der MSDN Bibliothek.