GetDrives HDD only

Costas

Administrator
Staff member
w/o Windows drive

JavaScript:
var f = DriveInfo.GetDrives().Where(x => x.DriveType == DriveType.Fixed &&
!x.RootDirectory.FullName.Equals(Environment.GetEnvironmentVariable("SystemDrive") + "\\"));
 
Top