InfoDiskFree
- Last UpdatedOct 29, 2026
- 1 minute read
InfoDiskFree is a built-in function that checks a specified drive on the local computer or device and then returns the amount of free space on that drive.
|
Function |
Group |
Execution |
String Exp. |
Windows |
Windows Embedded |
IoT View |
Thin Clients |
Mobile Access |
|---|---|---|---|---|---|---|---|---|
|
InfoDiskFree |
System Info |
Synchronous |
Yes |
Supported |
Not supported |
Supported |
Supported |
Supported |
Syntax
InfoDiskFree(strDisk)
InfoDiskFree ( strDisk )
strDisk
The name of the drive to be checked.
Note: Follow the conventions of the target platform for the file path and name, and separators. For example, a file path in Windows starts with a drive letter and uses backward slashes as separators (C:\path\to\file), while a file path in Linux starts at the root directory and uses forward slashes as separators (/path/to/file).
Return value
This function returns the amount of free space in bytes, as a real number. For example, a return value of 2803804605.000000 is approximately 2.7 GB.
Examples
Check drive C on a Windows computer:
InfoDiskFree("C")
Check the home directory on a Linux device:
InfoDiskFree("/home")