|
Previous Top Next |
The File Class contains methods that give you information about drives. It should probably have been named Drive Class, but in fact it started out with more methods related to files, which have been moved to the Core Class and other classes for easier access.
ITFileClass Class(ITNetworkClass),TYPE,Module('ITFileClass.clw'),Link('ITFileClass',_ITUtilLinkMode_),DLL(_ITUtilDllMode_)
LocalDrives &IT_LocalDrives
EnumLocalDrives Procedure(),Long ! Returns the number of enumerated drives
GetDriveType Procedure(String pDrive),Long
GetDriveTypeString Procedure(String pDrive),String
GetDriveSerialNumber Procedure(String pDrive),String
GetVolumeInfo Procedure(String pDrive, Long pInfoToGet),String
IsLocalDrive Procedure(String pPath),Byte ! Takes drive, path or path+file and returns true/false
Construct Procedure
Destruct Procedure
End