|
Property |
Method |
Event |
Enterprise |
|
GetLocalFileSizeGets the size of files in the local system. SyntaxHRESULT GetLocalFileSize( BSTR fileName, long *fileSize ); ParametersfileName [in] Names of the files whose size is to be gotten. fileSize [out, retval] File size Return Values0 (always) RemarksThe value of fileSize is -1 if this method fails. SamplesVBScript 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) |
||||