c# test if drive exists code example Example: check if drive exists c# DriveInfo.GetDrives().Any(d => d.Name.ToUpper()[0] == 'E');