This is something I have never been able to find a solution for. When using a command like:
Open "\\lancomputer\path\[url removed, login to view]" For Input As #1
If the "lancomputer" has password protected sharing enabled the command will fail, however you can then browse with Explorer and access the location and instead of failing it will prompt you for credentials.
I am looking for VB6 code, using API if required (sure it will be) to do the following functions below.
1. Function to check if a network path is inaccessible because it is password protected.
2. Function to pass user name and password to system to allow access if it is password protected.