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.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"ad" <fl****@wfes.tcc.edu.twwrote in message
news:ua**************@TK2MSFTNGP05.phx.gbl...
>I want to let a user account like John have the wirte privilege of a
specifed folder.
How can I do that by C#?