I thought this would be simple. I need the path to a USB but since I dont know which letter it will be assigned I thought I just use the volume label which doesnt change. Here my simple code:
var alldrives = DriveInfo.GetDrives();
string destd = alldrives.Where(x => x.VolumeLabel.Equals("UB64")).First().Name;
This throws Io exception (device is unavailable) even though the usb is plugged in. Could somebody let me know why please?
In my view this is different from a full list, as I already have a type of address and just need to convert to full path as opposed to start from nothing.