Description
Use the FileSystem
property to determine the file system of the specified disk.
Declaration
aqDriveInfoObj.FileSystem
Read-Only Property | String |
aqDriveInfoObj | An expression, variable or parameter that specifies a reference to an aqDriveInfo object |
Applies To
The property is applied to the following object:
Property Value
The name of the file system. The possible values are: FAT, NTFS, and CDFS.
Example
The code below demonstrates how to obtain the file system names of all the drives installed on your computer.
JavaScript, JScript
function DriveFileSystemExample()
{
var Fixed = 3;
for (i = 0; i != aqFileSystem.Drives.Count; i++)
{
if (aqFileSystem.Drives(i).DriveType == Fixed)
Log.Message("The file system of the " + aqFileSystem.Drives(i).DriveLetter + " drive is: " + aqFileSystem.Drives(i).FileSystem);
}
}
Python
def DriveFileSystemExample():
Fixed = 3
for i in range(0, aqFileSystem.Drives.Count):
if aqFileSystem.Drives.Item(i).DriveType == Fixed:
Log.Message("The file system of the " + aqFileSystem.Drives.Item(i).DriveLetter + " drive is: " + aqFileSystem.Drives.Item(i).FileSystem)
VBScript
Sub DriveFileSystemExample
Dim i, Fixed
Fixed = 3
For i = 0 to aqFileSystem.Drives.Count - 1
If aqFileSystem.Drives(i).DriveType = Fixed Then
Call Log.Message("The file system of the " + aqFileSystem.Drives(i).DriveLetter + " drive is: " + aqFileSystem.Drives(i).FileSystem)
End If
Next
End Sub
DelphiScript
function DriveFileSystemExample;
var i, Fixed: integer;
begin
Fixed := 3;
for i :=0 to aqFileSystem.Drives.Count-1 do
begin
If (aqFileSystem.Drives(i).DriveType = Fixed) Then
Log.Message('The file system of the ' + aqFileSystem.Drives(i).DriveLetter + ' drive is: ' + aqFileSystem.Drives(i).FileSystem);
end;
end;
C++Script, C#Script
function DriveFileSystemExample()
{
Fixed = 3;
for (i = 0; i != aqFileSystem["Drives"]["Count"]; i++)
{
if (aqFileSystem["Drives"](i)["DriveType"] == Fixed)
{
Log["Message"]( "The file system of the " + aqFileSystem["Drives"](i)["DriveLetter"] + " drive is: " + aqFileSystem["Drives"](i)["FileSystem"] );
}
}
}
See Also
Working With Files From Scripts
aqFileSystem.GetDriveInfo Method
DriveType Property