Changing permissions on NTFS file

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I am looking at a way in C# to change the permissions of a file to
localmachine\Users (Modify).

Thanks
Eric
 
You can use Shell Execute or PInvoke to tell cacls.exe what to do.

Alternatively you could try usin WMI.

HTH
Stuart
 
Thanks for the info.

Can you elaborate about the WMI solution? Do you have an example?

I have looked at MSDN and the samples are too simple.

Thanks
Eric
 
Back
Top