Setting files/folders permission

S

Samuel Shum

Hello, I'm just wondering if there are any .Net objects that I can use in
the framework that set folders/files permission, assign quotas to users.

Any suggestions/comments are welcome. Thanks in advance.

Samuel
 
G

Gert Pfeifer

Try the classes System.IO.FileInfo or System.IO.DirectoryInfo to read or set
attributes to files or dirs. They are using FileAttributes-Enumeration.
 
S

Samuel Shum

Thanks for the information, but it seems that the classes are not for
folder/file security permission. Say "UserA" under "CertainGroup" has full
access for directory "DirectoryA" whereas other members inside this group
have "read" access only and so on.

The "FileIOPermission" class under "System.Security.Permissions" seems to be
close, but I still can't figure out how to solve the problem with it...

Samuel
 

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

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top