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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Network drive mapping??? Help! 1

Status
Not open for further replies.

Pandyon

Programmer
Feb 21, 2001
38
US
First time working with VB in this situation. Helping a friend. They have a peer to peer wireless network (wireless..grrr). Mapped drives won't reconnect on logon because the wireless software runs AFTER the windows logon script.

Could someone tell me if, and how I can map a drive letter to a PC in the wireless network in VB? One computer's running Win98SE, the other WindowsME (don't ask why..I didn't do it!).

This might be REAL easy...don't know. As I said, I haven't ever worked with this sort of thing in VB before.

Thanks,

Pandyon
 
The EASIEST way to do it would be to:

sub Main()
shell "net use DRIVE: \\SERVER\SHARE"
end sub


That will shell out to a dos prompt and run the net use command to map the drive..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top