|
-
Oct 1st, 2002, 09:03 AM
#1
Thread Starter
Member
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!
-
Oct 1st, 2002, 01:56 PM
#2
Fanatic Member
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.
Last edited by Slow_Learner; Oct 1st, 2002 at 02:10 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|