How to assign permissions on file?

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

Guest

There are 2 Users on PC - User1 & User2. It is necessary to assign for User1 "Full control" on file c:\test.txt & to assign for User2 "Read only" on fhat file. How can I do it using .NET framework classes & C#?
 
Take a look at FileIOPermission class and available methods. And samples of
course.

HTH
Alex

CsharpStudent said:
There are 2 Users on PC - User1 & User2. It is necessary to assign for
User1 "Full control" on file c:\test.txt & to assign for User2 "Read only"
on fhat file. How can I do it using .NET framework classes & C#?
 

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