Dorris,
WSH MapNetworkDrive Method has 5 parameters
object.MapNetworkDrive(strLocalName, strRemoteName, [bUpdateProfile], [strUser], [strPassword])
You're missing the third (logical) parameter in your call.
onet.mapnetworkdrive(driveletter, drivepath,.f., userid, password)
>I have an application in VFP3 which used GPLib to do some Novell network calls (logging onto/mapping to servers, etc) which worked fine on Win95/98/NT3.5 machines. Then came bigger, better machines.
Problem with VFP3 and having over 512 Megs of RAM on machines, which is apparently the standard configuation for the newer machines here.
>
>So, I converted the application to VFP6. Didn't like GPLib anymore.
>
>So, I used the article on Windows API calls and the wscript object and converted the GPLib calls over to the object calls. Worked fine on Win95/98 machines. Then came Win2000.
>
>I'm getting an 'invalid type' error when I try to execute
>onet.mapnetworkdrive(driveletter, drivepath, userid, password)
>
>I've checked the values of the parameters and they are all character strings. Is there perhaps another parameter for Win2000/NT calls that I am unaware of?
>
>Any ideas?
>
>Thanks
--sb--