Hi all,
I have been trying to programatically set modify permission to a folder using the example from the msdn website, I can set file permissions ok but not the directory any ideas why? Heres the code not sure about the DomainName but have tried all that I can find attatched to the folder without luck the one included in the code is the one I found success with using the FileSecurity class.
Imports System
Imports System.IO
Imports System.Security.AccessControl
Public Class Permissions
Sub ErrorLogAndLogsFolder()
Dim sPath As String = "C:\Test"
AddDirectorySecurity(sPath, "BUILTIN\Users", FileSystemRights.Modify, AccessControlType.Allow)
Go to the complete details ...