Hi My requirement is to give write access to a particular folder for the user who have read access when running a specified application. I tried with google all the options gives only error like "Attempted to perform an unauthorized operation". I am working in c# colsole application. Please help on this issue
DirectoryInfo dInfo = new DirectoryInfo(FileName); DirectorySecurity dSecurity = dInfo.GetAccessControl(); dSecurity.AddAccessRule(new FileSystemAccessRule(Account, Rights, ControlType)); dInfo.SetAccessControl(dSecurity);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)