System.Management provides classes to use WMI. Using WMI you should be able
to change access restrictions for files, folders, or whatever else you might
want to change access restrictions for.
http://msdn.microsoft.com/library/de..._directory.asp
Above is a sample link to get you started. I'm afraid WMI is a fairly
complex beast, so you'll have to do some research to get the rest of your
answer.
--
Justin Rogers
DigiTec Web Consultants, LLC.
"Philip Carnstam" <ph*************@carnstam.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
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