Xojo 2019 R3.1
I need, at various points in my program, to detect whether or not a particular SD card has been inserted in a reader or return a FolderItem for that SD card. It will always have a volume name of “STRONTIUM”. On MacOS, it is easy, because FolderItem.Drive.DriveAt(i) returns useful names like “Mac HD” or “MyUSBStick” or “STRONTIUM”. But, on Windows, it only returns names like “C:” or “D:”. The drive name changes on Windows (at various times), according to what else is mounted.
Further, none of the properties of the FolderItem returned by DriveAt() seems to contain that name “STRONTIUM” (or, any other distinguishing information) though WindowsExplorer certainly knows. I can search through the children of a FolderItem to test for the presence of known files, but that can be a slow process on a big USB drive. I guess that I could abandon the search if nothing is found within a dozen or so tries, but that seems to be a bit of a hack.
Can anyone suggest how to improve this process?
Oregon Research Electronics