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

FSO Map Network Drive Question

Status
Not open for further replies.

sweetleaf

Programmer
Jan 16, 2001
439
CA
Hi,

if i have to map from NT to a unix drive which requires a username and password how do i do it?

1set wn=CreateObject("WScript.Network.1")
2wn.MapNetworkDrive "Z:","\\ex-am-3transporter\dbo","tim","horton"
4
5Set fso = CreateObject("Scripting.FileSystemObject")
6fso.MoveFile fileName,"Z:\"

The above example gives me a Type Mismatch error at lines 2 and 3
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top