Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mapping drives

Status
Not open for further replies.

wirehead

MIS
Nov 27, 2001
9
0
0
US
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.

thanks in advance,
Wired
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top