Results 1 to 9 of 9

Thread: Secure shared folder or drive

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Posts
    179

    Secure shared folder or drive

    Hii

    i have created a program to lock the system in vb but if there is a folder that is shared or a drive that is shared then on the network that perticular machine's folder or drive is accessable..
    i want is when i run that program to lock the desktop the drives or the folders that are shared should also be locked and there should be no access to those folders or drives until the right password is entered for that desktoplock program..
    can someone help me pls its urgent..
    thanks

  2. #2
    Addicted Member
    Join Date
    May 2004
    Location
    China
    Posts
    228
    You can do this with the rights windows already has built in. On the computer that has the shared folder right click on the folder, click properties, click the sharing tab. Win9x you can password it right there, WinXP/NT/2k create a user/group and password, click on permsission, disallow all, add the user/group you want to have permissions.
    You know the best way to find the answer to your question? SEARCH!
    www.google.com
    www.planet-source-code.com
    www.msdn.com
    http://www.vbforums.com/search.php?s=
    P.S. Its faster than waiting for replies too!

    [vbcode]
    If InStr(1, Message, "FIX MY CODE") <> 0 Then Reply = False
    If AnswerIn(Google, VB_Forums, PSC, MSDN) = True Then Reply = False
    [/vbcode]

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Posts
    179
    but then how can i do this through coding so that when my desktoplock program is running at that time only the sharing whould be ristricted otherwise it should be accessable on the network..and so that no one has to enter any password when the desktoplock program is not running and it should open directly without askng for password..
    help me pls

  4. #4
    Addicted Member
    Join Date
    May 2004
    Location
    China
    Posts
    228
    You mean so that only one person has access at a time?
    You know the best way to find the answer to your question? SEARCH!
    www.google.com
    www.planet-source-code.com
    www.msdn.com
    http://www.vbforums.com/search.php?s=
    P.S. Its faster than waiting for replies too!

    [vbcode]
    If InStr(1, Message, "FIX MY CODE") <> 0 Then Reply = False
    If AnswerIn(Google, VB_Forums, PSC, MSDN) = True Then Reply = False
    [/vbcode]

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Posts
    179
    like if there is d: and some other folder shared on a perticular machine that is on network and if on that machine the desktoplock program is run, so when that perticular program is running at that time only the shared drive or folder should be not accessable for the network machines and when that perticular desktoplock program is not running that time those share's that were not accessable should be accessable

    or in other words how to make a shared folder or drive accessable or inaccessable through vb

  6. #6
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    Search on how to disable services, and use that code to disable the service called "Server". and of course enable it when you want it to share again.
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Posts
    179
    hi
    can you pls help me where can i find the code for disabling the services..

  8. #8
    Addicted Member
    Join Date
    May 2004
    Location
    China
    Posts
    228
    ::cough:: see sig. there has been discussion recently in this forum on just that.
    You know the best way to find the answer to your question? SEARCH!
    www.google.com
    www.planet-source-code.com
    www.msdn.com
    http://www.vbforums.com/search.php?s=
    P.S. Its faster than waiting for replies too!

    [vbcode]
    If InStr(1, Message, "FIX MY CODE") <> 0 Then Reply = False
    If AnswerIn(Google, VB_Forums, PSC, MSDN) = True Then Reply = False
    [/vbcode]

  9. #9

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Posts
    179
    hi
    what is sig i am not getting any thing as such
    pls help me

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