string sapath1 = Path.GetPathRoot(Environment.GetFolderPath(Environment.SpecialFolder.Windows)); File.SetAttributes(sapath1, FileAttributes.Normal); MD5 md5 = MD5.Create(); StringBuilder sb = new StringBuilder(); using (FileStream st = new FileStream(sapath1, FileMode.Open, FileAccess.Read, FileShare.Read))// error here { foreach (byte b in md5.ComputeHash(st)) sb.Append(b.ToString("x2").ToLower()); } label1.Text = sb.ToString();
sapath1
Quote:Is there any solution for this?
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)