File functions
Use the built-in file functions to check whether a file exists, or to check the amount of free disk space.
The file parameter is the complete path name, surrounded by quotes. The drive parameter is the letter of the drive.
The following table lists file functions:
This function | Returns this value |
---|---|
FILE_EXISTS ("file ") | 1 (True) if the specified file exists. |
FREE_BYTES (drive ) | The number of bytes free on the specified drive. The maximum value the Free_Bytes function can return is the largest number a signed 32-bit value can provide. If Free_Bytes is used on a drive that has more than 2.1 GB, it will return 2.1 GB (approximately 2,147,483,647 bytes). |
Provide Feedback