Description
The aqDriveInfo
object provides detailed information about any drive of the computer, no matter whether the drive is physical or logical. The objects of this type are returned by a number of methods and properties of common scripting objects (for example, by aqFileSystem.GetDriveInfo
).
Members
Example
The following example demonstrates how you can get the total size of the desired drive.
JavaScript, JScript
function DriveSizeExample()
{
Log.Message(aqFileSystem.GetDriveInfo("C").TotalSize);
}
Python
def DriveSizeExample():
Log.Message(aqFileSystem.GetDriveInfo("C").TotalSize)
VBScript
Sub DriveSizeExample
Call Log.Message(aqFileSystem.GetDriveInfo("C").TotalSize)
End Sub
DelphiScript
function DriveSizeExample;
begin
Log.Message(aqFileSystem.GetDriveInfo('C').TotalSize);
end;
C++Script, C#Script
function DriveSizeExample()
{
Log["Message"](aqFileSystem["GetDriveInfo"]("C")["TotalSize"]);
}
See Also
Working With Files From Scripts
aqFileSystem.GetDriveInfo Method
aqFileSystem Object