Funktionreferenz


_WinAPI_GetFileSizeOnDisk


Retrieves the file allocation size on disk

#include <WinAPIFiles.au3>
_WinAPI_GetFileSizeOnDisk ( $sFilePath )

Parameter

$sFilePath The name of the file to retrieve allocation size.

Rückgabewert

Success: The allocation size, in bytes.
This value is a multiple of the sector or cluster size of the specified physical device.
Failure: 0, call _WinAPI_GetLastError() to get extended error information.

Bemerkungen

None.

Beispiel

#include <WinAPIFiles.au3>

Local Const $sFile = @ScriptFullPath

ConsoleWrite('Ort:    ' & $sFile & @CRLF)
ConsoleWrite('Größe:         ' & FileGetSize($sFile) & @CRLF)
ConsoleWrite('Größe auf dem Datenträger: ' & _WinAPI_GetFileSizeOnDisk($sFile) & @CRLF)