This function is used to retrieve the size of a file. It is identical to the VaToolBxFileSize function, but it allows to work with files larger than 2 Gb.
Context
Windows client,
Windows server,
Java client,
Java server,
Adelia Web client,
Adelia Cloud client,
Event Adelia client.
Parameters
ALPHA(n) |
File |
Name of the file to be tested. |
NUM_BIN_8 |
Size |
Size of the file in bytes. Output parameter. |
NUM_BIN_2 |
ReturnCode |
Return code for the operation: 0 Operation completed successfully. -1 Unable to open the file. -2 A system error occurred. Output parameter. |
Example
ALPHA(256) |
File |
NUM_BIN_8 |
Size |
NUM_BIN_2 |
ReturnCode |
* Retrieval of the size of file 'c:\temp\test.txt'
File = 'c:\temp\test.txt'
CALL_DLL 'VaToolBx' 'VaToolBxFileSize64' File Size ReturnCode
IF ReturnCode <> 0
Error processing...
END