How to let a user account have write privilege of a folder

  • Thread starter Thread starter ad
  • Start date Start date
A

ad

I want to let a user account like John have the wirte privilege of a
specifed folder.
How can I do that by C#?
 
In .NET 2.0, you will have to call the GetAccessControl method on the
Directory class or the DirectoryInfo class. This will return a
DirectorySecurity instance which you can use to modify the rights to the
directory for.

If you are using .NET 1.1 or before, then you will have to make the
calls to the appropriate APIs in the platform in order to do this.

Hope this helps.
 
Back
Top