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!

Connect to network drive in VB6

Status
Not open for further replies.

nospace52

Technical User
Jan 28, 2003
27
0
0
US
I have not used vb6 for quite a while. Is there a way to connect to a network drive and send the users and password ?
I'm putting together a Program where several users would access a database on a shared drive and update the 2000 Access database based on certain criteria. Instead of having the users logon to the drive each morning to run the update - I would like to have the program sign them in to the Network Drive.

The Network drive would be like \\XXX.XX.XX.XX\data
with the user like "Out" and the password like "Today"
and the mapped drive would be the M drive so each user
would have access.

Thanks


< I want to work in Theory - everything and everybody works in Theory !!>
 
Why not map the drive in their login script? Or map it manually and set to reconnect at logon?

Andy
&quot;Logic is invincible because in order to combat logic it is necessary to use logic.&quot; -- Pierre Boutroux
 
See thread thread222-679661 for some info about a Wnetxxx function.
and also thread222-662397

Then search MSDN for WNET and see what WNET function you have available.
One you can use is wnetuseconnection

This Microsoft ID has a full working example for VB - Q256847





Regards

Frederico Fonseca
SysSoft Integrated Ltd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top