changin the rights on a file or a directory

  • Thread starter Thread starter Florent
  • Start date Start date
F

Florent

Hi all,

I'm trying to set rights on a file or a directory with a C# program. I have
tried with WMI, Win32 classes, etc, but I didn't manage to do it. Could
anyone help me? Does anyone have a website, a free sourcecode, a sample, or
anything that could help me changing access rights on a file ?

Thanks,

Florent
 
Look at the class System.IO.File, it has two methods:

GetAttribute
SetAttribute
 
Hi,
I've already tried this, it only allows you to change the "write only" or
"hidden" attributes, you cant change the NTSecurityPermissions with this.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top