Sign in to follow this  
Followers 0
Reddragon

Can anyone convert this vb.net code to autoit

2 posts in this topic

I want two snippets of vb.net code converted to autoit.Please help.

The two snippets are:

Dim fs AsFileSystemSecurity = File.GetAccessControl(txtbxBrowseFolderName.Text)

fs.AddAccessRule(NewFileSystemAccessRule(Environment.UserName, FileSystemRights.FullControl, AccessControlType.Deny))

File.SetAccessControl(txtbxBrowseFolderName.Text, fs)
Dim fs AsFileSystemSecurity = File.GetAccessControl(txtbxBrowseFolderName.Text)

fs.RemoveAccessRule(NewFileSystemAccessRule(Environment.UserName, FileSystemRights.FullControl, AccessControlType.Deny))

File.SetAccessControl(txtbxBrowseFolderName.Text, fs)

Share this post


Link to post
Share on other sites



Reddragon, you explain very clearly what you want, but don't show what you have tried on your own. This forum is dedicated to helping people with their own scripts; it is not a place where you put in a request and someone barfs up code for you. Since you don't seem to be familiar with the vb code, I would suggest starting simply with icacls. Something like this should get you started; Google icacls for more information:

$sFile = @DesktopDir & "\PCs.txt"
    ShellExecute("icacls", $sFile & " /grant Administrator:(D,WDAC)")

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0