Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IS THERE AN API FUNCTION TO SAY IF A SERVER EXIST
Message
From
21/10/2000 03:28:45
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00432352
Message ID:
00432446
Views:
24
>>HEY GUYS IS THERE AN API TO SAY IF A PARTICULAR SERVER EXIST. EXAMPLE IN MY PROGRAM I WANT TO CHECK IF SERVER1 EXIST ON THE NETWORK.
>
>You may use WSH to get the list of files on a SERVER1. If you got an error, then the server doesn't exist.
>HTH, Igor

You can get my NETRESOURCE class to do this; it's got demo code that enumerates all shared resources in a domain, and by changing the scoping, you could discover the resources relative to a specific server. If you want to do this, the source code is included; it'd be your responsibility to develop the necessary code.
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