FolderItem.LastDriveIndex
From Xojo Documentation
Shared Property (As Integer)
Returns the index of the last mounted drive.
Examples
See the FolderItem.DriveAt function for an example.
See Also
FolderItem.DriveAt and FolderItem.DriveCount functions.