转载来自如何获取可移动磁盘 ,看到对以后写代码肯定有用,故在此记录以防后续忘记
foreach (var driveInfo in DriveInfo.GetDrives()) { if (driveInfo.DriveType == DriveType.Removable) { } }
转载来自如何获取可移动磁盘 ,看到对以后写代码肯定有用,故在此记录以防后续忘记
foreach (var driveInfo in DriveInfo.GetDrives()) { if (driveInfo.DriveType == DriveType.Removable) { } }