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

Opening a network share

Status
Not open for further replies.

mannion

IS-IT--Management
Jun 24, 2002
73
GB
Hi,

I cant seem to get this working, I have used VB6 Learning edition to create it and every time I run it, the line starting with "Set WshNetwork" needs to be debugged, this is the script below:



Private Sub Command2_Click()

Dim Path As String
Path = "\\xx3\" + Text1.Text
Set WshNetwork = Wscript.CreateObject("Wscript.Network")
WshNetwork.MapNetworkDrive "Z:", Path

End Sub



I dont have a clue why, anyone??????? James Mannion
IT Officer
James_m_is@hotmail.com
 
It's ok now used this method instead, make more sense don't know why I thought of mapping it?????


Shell ("c:\winnt\explorer.exe \\xx3\") & Text1.Text
James Mannion
IT Officer
mannion@whitecross.hereford.sch.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top