Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FileSystemObject and Network controls
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00263540
Message ID:
00263541
Vues:
21
>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.

Forgot to mention, we don't get an OLE exception, it just doesn't map the drive.
Oct 31 = Dec 25
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform