File System Security

  • Thread starter Thread starter Philip Carnstam
  • Start date Start date
P

Philip Carnstam

Hi,

Does anyone know how to change access rights in C#. I want to create a
program that changes adds trustees to certain files as they arrive on my
server.
I have tried searching MSDN, but that did'nt help...

Thanks,
Philip
 
Philip Carnstam wrote:
|| Hi,
||
|| Does anyone know how to change access rights in C#. I want to create
|| a program that changes adds trustees to certain files as they arrive
|| on my server.
|| I have tried searching MSDN, but that did'nt help...
||
|| Thanks,
|| Philip

Your best option is to use Process.Start to run CACLS.EXE, all other options (WMI, DirectoryServices, Win32 API .... ) are complex.

Willy.
 
Thanks, that was just the solution I was seeking!

Willy Denoyette said:
Philip Carnstam wrote:
|| Hi,
||
|| Does anyone know how to change access rights in C#. I want to create
|| a program that changes adds trustees to certain files as they arrive
|| on my server.
|| I have tried searching MSDN, but that did'nt help...
||
|| Thanks,
|| Philip

Your best option is to use Process.Start to run CACLS.EXE, all other
options (WMI, DirectoryServices, Win32 API .... ) are complex.
 
Back
Top