Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Well, it worked on W98......
Message
 
 
À
25/03/2003 17:56:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00769988
Message ID:
00770003
Vues:
20
This message has been marked as the solution to the initial question of the thread.
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform