DescriptionReturns a file's size.SyntaxFunction GetSize( filename )filename (input) - the file to be checkedReturn valueThis function returns a string that specifies the size of the input file.
Description
Returns a file's size.
Syntax
Function GetSize( filename )
filename (input) - the file to be checked
Return value
This function returns a string that specifies the size of the input file.
Sample'---------- Start ----------Function StartDim file file = "C:\FileTestFolder\trgFileSample.txt" if target.file.GetSize(file) < 1024 then trg.Message( "This file is less than 1kb, are you sure it is the right file?" ) end ifEnd Function
'---------- Start ----------
Function Start
Dim file
file = "C:\FileTestFolder\trgFileSample.txt"
if target.file.GetSize(file) < 1024 then
trg.Message( "This file is less than 1kb, are you sure it is the right file?" )
end if
End Function
See alsoPlatform Objects and Methodstarget.file.GetNametarget.file.GetTexttarget.file
See also
Platform Objects and Methodstarget.file.GetNametarget.file.GetTexttarget.file