c# - Set directory permissions on Windows XP -
when right-click on file or directory in windows xp , select 'properties' usual windows properties pop-up. in pop-up there 2 places can set file permissions, first, in 'security' tab, has checkboxes 'full control', 'modify', 'read & execute' etc. , second can found clicking 'advvanced' button @ bottom of 'security' tab.
i know how set file/directory permissions 'advanced' section programmatically in c# (using .getaccesscontrol, .addaccessrule , .setaccesscontrol), cannot find way of programmatically setting file permissions in normal 'security' section of file properties window.
can tell me how programmatically in c#?
these different views of same underlying data - need use methods mention update file permissions.
information available here: http://msdn.microsoft.com/en-us/library/system.io.file.setaccesscontrol.aspx
Comments
Post a Comment