Results 1 to 2 of 2

Thread: Win NT Security

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 1999
    Location
    España
    Posts
    45

    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!

  2. #2
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    518
    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
  •  



Click Here to Expand Forum to Full Width