GoFiler Legato Script Reference
Legato v 1.5b Application v 5.24b
|
Table of Contents | < < Previous | Next >> |
Chapter Six — File Functions (continued)
Overview
The GetVolumeSize function retrieves the amount of total space available (used and free) on a volume to the user owning the process thread.
Syntax/Parameters
Syntax
qword = GetVolumeSize ( string volume );
Parameters
volume
A string containing the disk, volume, or UNC designation. If this parameter is a UNC name, it must include a trailing backslash (for example, “\\MyServer\MyShare\”).
Return Value
Returns a qword specifying the space available to the user or zero on failure. Use the GetLastError function to retrieve error information.
Remarks
The volume parameter does not have to specify the root directory on a disk. Any directory on the disk is acceptable. The calling application must have FILE_LIST_DIRECTORY access rights for this directory.
The GetVolumeSize function returns zero for all CD requests unless the disk is an unwritten CD in a CD-RW drive. When retrieving the volume space of a network share, the size may be reflected in any number of network shares since it is usually reported as the total space of the volume where the share is located.
Related Functions
Platform Support
Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL
Legato IDE, Legato Basic
Table of Contents | < < Previous | Next >> |
© 2012-2024 Novaworks, LLC. All rights reserved worldwide. Unauthorized use, duplication or transmission prohibited by law. Portions of the software are protected by US Patents 10,095,672, 10,706,221 and 11,210,456. GoFiler™ and Legato™ are trademarks of Novaworks, LLC. EDGAR® is a federally registered trademark of the U.S. Securities and Exchange Commission. Novaworks is not affiliated with or approved by the U.S. Securities and Exchange Commission. All other trademarks are property of their respective owners. Use of the features specified in this language are subject to terms, conditions and limitations of the Software License Agreement.