Results 1 to 5 of 5

Thread: Stopping a user from accessing a folder

  1. #1

    Thread Starter
    Hyperactive Member cameron2's Avatar
    Join Date
    Mar 2008
    Location
    Australia
    Posts
    401

    Stopping a user from accessing a folder

    Hi
    I'm making a security application and want to know how to check if a folder is open and how to close that folder (maybe by killing explorer) if i dont want it to be accessed. Would i use systemfilewatcher?

    Thanks
    Cameron.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Stopping a user from accessing a folder

    The simple fact is that you wouldn't. Windows has in-built security to prevent users accessing folders and that's what you should be using. A high-level language like VB is simply not appropriate for low-level security.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Hyperactive Member cameron2's Avatar
    Join Date
    Mar 2008
    Location
    Australia
    Posts
    401

    Re: Stopping a user from accessing a folder

    Yes i understand what your saying it's just i would like to know if there is a way you could do it.

    By the way what is this windows built in security to stop users accessing a folder?

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Stopping a user from accessing a folder

    Quote Originally Posted by cameron2
    By the way what is this windows built in security to stop users accessing a folder?
    That's beyond the scope of a forum dedicated to VB.NET programming but in brief you can set file and folder permissions on a per-user basis. How do you think large companies implement security? If you want security then you should use what the OS provides first, then look elsewhere if it's inadequate in some way.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Hyperactive Member cameron2's Avatar
    Join Date
    Mar 2008
    Location
    Australia
    Posts
    401

    Re: Stopping a user from accessing a folder

    I realise you can set folder permissions with windows but i want my application TO DO this and am wondering if anyone knows hoe.

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