Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Network Drives
Message
De
14/01/2000 03:06:59
 
 
À
13/01/2000 09:43:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00317558
Message ID:
00318058
Vues:
37
>Is there a way to map network drives from VFP?
>

Depending on the functionality you need, the Win32 API provides several mechanisms- the best of these is probably WNetAddConnection3(). My NETRESOURCE class which can be downloaded from UT contains an implementation of it as an example - you'd also need to download my CLSHEAP class.

The Windows Script Host has an automation object, Wscript.Network, which can do this - you need to make sue the WSH is installed on all target systems to use this approach. Win98 and Win2K already contain it, as does any system with IE4 or later installed. You can also download a self-installing executable from msdn.microsft.com/scripting that can add the WSH to most systems.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform