Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Displaying Network Resource
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00429035
Message ID:
00429047
Vues:
13
>is there a command or API call i can use that will display a dialog box of all the shared folders and/or printers on the network?
>

Download my NETRESOURCE class from the Files section (you'll also need CLSHeap, also in the Files section.) It contains example code that will iterate all shared resources available on a network. It does not create a dialog; you'll need to collect the desired shares into a cursor or array and create a form with a listbox or combo or TreeView to display the results.

You can also grab the files from my Web Site (http://www.esolserv.com - Craig finally fixed up what I frobbed in converting to an Active Directory environment.)

You can also call the Win32 API WNetConnectionDialog(), which fires up a dialog box to map a UNC to a drive letter (see the Windows API section), or use Shell.Application's BrowseForFolder method (see the FAQ entry on an Enhanced GetDir()) or use Bela Bodec's bbGetDir, also available in the Files section.
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