Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Anyway to browse computer only?
Message
From
01/03/2001 08:15:33
 
 
To
01/03/2001 07:53:49
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00480899
Message ID:
00480907
Views:
9
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform