File_GetSize

Description

Get size of file


Syntax

File_GetSize(sFile) As Boolean


Parameters

sFile (String)

Filename


Return value

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


Example

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

Scripting Guidelines


Related functions

File_CreateEmptyFile