var
NewDrive:string;
begin
case GetDriveType(PChar(NewDrive)) of
1: FDriveType := dNonExisting;
DRIVE_REMOVABLE: FDriveType := dRemoveable;
DRIVE_REMOTE: FDriveType := dRemote;
DRIVE_FIXED: FDriveType := dFixed;
DRIVE_CDROM: FDriveType := dCDRom;
DRIVE_RAMDISK: FDriveType := dRamDisk;
else
FDriveType := dUnknown;
end;