|
GetFileSize |
Top Previous Next |
|
GetFileSize
Syntax GetFileSize([in] FilePath, [out] FileSizeVar);
Description To detect the size of a file.
Parameters FilePath The file path to be detected. FileSizeVar The name of the variable to receive the return file size.
Return 1 = success 0 = failed -1 = FSCommands cannot be found
Example
FSCommand("GetFileSize", "C:\\Test.dat,FileSizeVar");
This will detect the size of a file c:\test.dat. _root.FileSizeVar variable will be set upon completion of this FSCommand.
You can use an escape character ~ (tilda) to insert a comma into a file path. |