Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WNetGetResourceInformation
Message
De
05/11/1998 08:32:21
 
 
À
05/11/1998 08:00:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00154295
Message ID:
00154766
Vues:
18
>Any other way to find a local letter for a network drive?

Several, actually; the easiest is to install the Windows Scripting Host (it's built into Win98 and NT 5, is a part of Option Pack 4 for NT 4.0, and can be added to any of the Win32 environments by downloading WSH.EXE from Microsoft's Web site and installing it on local systems. It's an incredibly powerful facility, not just for its internal object interface, but also as a means to use VBScript and JScript for a number of tasks) and instantiate the Wscript.Network automation object. If you look back over the past couple of weeks, you'll find several examples I've posted on using the Wscript.Network object to enumerate the network resources attached to the local system.
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