-
Win NT Security
Hello!
I want to manipulate the access permisions to a folder using VB.NET. The folder is under Win NT formatted drive and I know how to use NT security to allow or disallow someone to access any folder or file but I want to do this automaticaly by a program.
Please help me!
-
ms-help://MS.VSCC/MS.MSDNVS/dnvbpj99/html/lj1099.htm
The actual process of modifying file permissions is not as straightforward as you might think. Keep in mind the sample code in that article is written in VB5 and some (probably a lot) of it won't work exactly the same. Have fun ;)
You know, you'd probably have a much easier time just getting the task accomplished by using the command-line tool cacls.exe:
ms-help://MS.VSCC/MS.MSDNVS/kbwinnt/Source/winnt/q162786.htm
You can script something in VBScript that can invoke cacls and perform a bunch of commands based on crap you fill in with dialog boxes generated by VBScript etc.