Function Reference

FileGetSize

Returns the size of a file in bytes.

FileGetSize ( "filename" )

 

Parameters

filename Filename to check.

 

Return Value

Success: Returns the size of the file in bytes.
Failure: Returns 0 and set the @error to 1.

 

Remarks

Does not work on directories.
Divide result by 1024 to get kilobyte equivalent, or divide by 1048576 to get megabyte equivalent.

 

Related

FileGetAttrib, FileGetTime, DriveSpaceTotal

 

Example


$size = FileGetSize("AutoIt.exe")