How would I go about writing VB code to reconnect disconnected mapped drives? Is there a way of checking to make sure the computer I want to connect to is on the network.
Alternative to API calls
you can use the shell command to produce a file of network information and then re use shell to map a drive.
batch commands that you need are
net view /?
and
net use /?
Use of if exists in batch files is quite usefull to check if files do exist or not.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.