DIAdem Help

Property: FileSystem for Drive

  • Updated2024-09-12
  • 1 minute(s) read

Property: FileSystem for Drive

Returns the file system of a drive.

Object.FileSystem
ObjectDrive
Object with this property
Object.FileSystemString with read access

The following example returns the file system of all drives:

Function CreateDriveFileSystemList
  Dim fso, oMyDrive, oMyDrives, sOutput
  Set fso = CreateObject("Scripting.FileSystemObject")
  Set oMyDrives = fso.Drives
  For Each oMyDrive in oMyDrives
    sOutput = sOutput & oMyDrive.DriveLetter & VBTab 
    If oMyDrive.IsReady Then
      sOutput = sOutput & oMyDrive.FileSystem
    Else
      sOutput = sOutput & "[Not ready]"
    End If
    sOutput = sOutput & VBCrLf
  Next
  CreateDriveFileSystemList = sOutput
End Function

Log in to get a better experience