Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FileSystemObject and Network controls
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
FileSystemObject and Network controls
Divers
Thread ID:
00263540
Message ID:
00263540
Vues:
50
I have an app I am moving from a 98 desktop to an NT server (4.0 SP4). The following code is in the init method of a custom class used in the app:

This.oFSO = createobject("Scripting.FileSystemObject")
This.oNSO = createobject("wscript.network")

In another method used to map a drive before copying files, I issue the following code:

This.oNSO.MapNetworkDrive(tcDrive, tcUNC, .F., tcUser, tcPwd)

which maps the drive using the drive, unc, user, and pwd information stored in meta tables (the .f. turns off the UI). This works fine on 95 and 98, as long as the wshom.ocx and scrrun.dll are properly registered. On NT server, the MapNetworkDrive call fails. We manually mapped a drive based on the exact same information used in the method call and the drive map worked as expected. Any ideas?

My SWAG is that I need updated versions for the ocx/dll files for NT.
Oct 31 = Dec 25
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform