How to check the drive of a specific path c# code example Example: check if drive exists c# DriveInfo.GetDrives().Any(d => d.Name.ToUpper()[0] == 'E');