Click to See Complete Forum and Search --> : Open Shared Password Protected Files and Folders


thedm
October 23rd, 2001, 12:11 PM
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.

Tower
October 23rd, 2001, 08:54 PM
I think you can use API function WNetAddConnection2 and WNetCancelConnection2 for connect and disconnect to network drive. This is work fine, i test this.

thedm
October 24th, 2001, 09:45 AM
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!