Skip to content

File\_GetSize

Get size of file

File_GetSize(sFile) As Boolean

sFile (String)

Filename

Result will be stored in giValue. If file does not exist giValue will be equal to -1

VBScript

If bStatus Then bStatus = File_GetSize("C:\CapaInstaller.txt")
If bStatus Then bStatus = Job_Writelog("Custom", "giValue: " & giValue, bStatus, True)

Scripting Guidelines

File_CreateEmptyFile