DIAdem Help

Property: Size for File

  • Updated2024-09-12
  • 1 minute(s) read

Property: Size for File

Specifies the size of a file.

Object.Size
ObjectFile
Object with this property
Object.SizeVariant with read access
Returns the size in bytes.

The following example returns the size of a file:

Function ShowFileSize(sFile)
  Dim fso, oMyFile
  Set fso = CreateObject("Scripting.FileSystemObject")
  Set oMyFile = fso.GetFile(sFile)
  ShowFileSize = "Size: " & oMyFile.Size
End Function

Log in to get a better experience