hi
i have this code in C# for giving full control to any file, its work excellent
but how i can give full control to any Directory ?
thanks in advance
i have this code in C# for giving full control to any file, its work excellent
but how i can give full control to any Directory ?
string fileName = @"d:\MyFile.mdb";
FileSecurity fSecurity = File.GetAccessControl(fileName);
fSecurity.AddAccessRule(newFileSystemAccessRule("Everyone",FileSystemRights.FullControl,AccessControlType.Allow));
File.SetAccessControl(fileName, fSecurity);thanks in advance