Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Network Shares
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00209682
Message ID:
00209880
Vues:
21
>I'm looking for a function that will allow me to browse the network neighborhood and select a share name. I've downloaded focus and looked at the Fil_BrowserForFolder function. This function displays all folders under the share selected. I need a function that only shows the available shares (ignoring subdirectories which do not have specific share names assigned to them).
>
>Thanks,
>
>Rick Napolitan
>

If you're using systems that have Shell version 4.71 or later, there's an Enhanced GetDir() example in the FAQ that i wrote using the Shell.Application automation object that can reach anything in Network Neighborhood. Bela Bodecs has also written an FLL that provides access to a GETDIR-style dialog that allows network access as well.

Under VFP6, the ANETRESOURCES() function can return the list of shares as well, and in my NETRSC.ZIP file, there's an example program showing how to use the NETRESOURCE class to find all available shares on the network using a few API calls.

>nappy@mail.twd.net
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform