Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Anyway to browse computer only?
Message
De
01/03/2001 08:15:33
 
 
À
01/03/2001 07:53:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00480899
Message ID:
00480907
Vues:
8
>Hi,
> Anyway to allow user to browse only computers located in netowrk instead of folder and driver together?
>

You could modify my NETRESOURCE class example that collects all exposed shares to only drill down to the machine and stop there; NETRESOURCE is in the FIles Section; you'd change the line that reads:
IF 'CONTAINER' $ oNetRsc.GetUseage()
to read:
IF 'CONTAINER' $ oNetRsc.GetUseage() AND LEFT(oNetRsc.GetLocalName() + "  ",2) # '\\'
to not drill down below the machine name. Only machines with a share would be visible in this fashion.
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