View Single Post
  #4 (permalink)  
Old June 11th, 2003, 10:33 AM
delcyan delcyan is offline
Authorized User
 
Join Date: Jun 2003
Location: St-Laurent, Quebec, Canada.
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello all,

I have been able to map the drive from VB using the wshom reference. See code below:

----Start code
Dim objMap As WshNetwork

Set objMap = New WshNetwork
Call objMap.MapNetworkDrive(pstrMapDriveLetter, pstrPathToMap, True)
-----End Code

Yesterday, everything was working as expected but today it failed to map that same drive.
See error:

Automation error
The specified device name is invalid.

my Drive Letter
"T:"

Path that I am mapping to
"\\Stn006d\Data06a"

Does anybody knows what is happening here?

Thank you

A.Delcy
Web Administrator
Canada
Reply With Quote