private bool IsLocalDrive(string path) { if (path.StartsWith("\\\\")) return false; var driveinfo = new DriveInfo(new FileInfo(path).Directory.Root.FullName); return driveinfo.DriveType == DriveType.Fixed; }