CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2001
    Location
    Fort Wayne, IN
    Posts
    2

    Open Shared Password Protected Files and Folders

    First off, I'd like to congratulate all of the responders on the forum. You have made this site an invaluable tool for finding answers to questions. On behalf of myself and everyone else, THANKS!

    Now for my hopefully simple question. Can someone give me an example of opening a password protected file and/or folder on a network computer using Visual Basic? I can see no way to pass a known password to a DirList or FilList, nor any commands to pass the password to the requesting system. How is this done? Any help would be appreciated. Thanks.


  2. #2
    Join Date
    May 2001
    Location
    Russia
    Posts
    200

    Re: Open Shared Password Protected Files and Folders

    I think you can use API function WNetAddConnection2 and WNetCancelConnection2 for connect and disconnect to network drive. This is work fine, i test this.

    Andy Tower

  3. #3
    Join Date
    Oct 2001
    Location
    Fort Wayne, IN
    Posts
    2

    Re: Open Shared Password Protected Files and Folders

    Tower:

    Thank you for the pointer. It works great using the sample I found. Now I just have to modify the sample for my application. Thanks again!


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

Featured