Property

Method

Event

Enterprise

 

GetLocalFileSize

Gets the size of files in the local system.

Syntax

    HRESULT GetLocalFileSize(
          BSTR fileName,
          long *fileSize
    );

Parameters

fileName

[in] Names of the files whose size is to be gotten.

fileSize

[out, retval] File size

Return Values

0 (always)

Remarks

    The value of fileSize is -1 if this method fails.

Samples

VBScript

dim object, filePath, fileSize
set object = Document.editForm
'Sets the files whose size to be gotten
filePath = "C:\\TestFile.jpg"  
'Gets the file size
fileSize = object.wec.GetLocalFileSize(filePath)