Salesforce

How Do I Get the Size of a File on Disk? (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

How Do I Get the Size of a File on Disk? (Magic xpa 3.x)

Sometimes you need to know how big a file is on disk. This might be the case if you were trying to see if any data were created in it (the size is not zero) or if it might be too large to send as an email attachment.

FileInfo()

You can find the size of a file on disk using the FileInfo() function. The syntax is:

FileInfo (File Name,5)

See also

The Magic xpa Help for I/O functions

The Online and Rich Client Samples projects (program EL20, REL20 and REL20b)

Reference
Attachment 
Attachment