Friday, May 10, 2013

Open file as read only


var attributes = File.GetAttributes(path);

File.SetAttributes(filePath, attributes | FileAttributes.ReadOnly);

System.IO.Diagnostics.Process.Start(fileName);

File.SetAttributes(filePath, attributes);




As Kushwaha


No comments:

Post a Comment