|
-
Oct 15th, 2001, 01:37 PM
#1
Thread Starter
Junior Member
Checking for existence of computer
Can someone tell me how I can check for the existence of a computer on the network. I'm assuming that I need to use the API for this.
To help you understand my purpose in this, this is a description of my very simple application. Essentially I have a internal office messaging program. You simply select the user from a dropdown, type a message and hit "SEND" and the message is sent via the NET SEND command using the API. I want to check that the user is there before the message is sent.
Thanks,
Ryan
-
Oct 15th, 2001, 02:25 PM
#2
This will enumerate (list) all the computers in the domain
http://www.mvps.org/vbnet/code/netwo...serverenum.htm
-
Nov 27th, 2001, 11:53 AM
#3
Addicted Member
Oh dear!
I'm afraid that enumerate actually means 'count', not list...
I'm also after the code, but in an API format, as I need the facility to work in Microsoft Access.
So Pleasssssseeeee!!! does anyone know the API to simply return whether a computer is logged on to the network or not?
I tried the code in the link and it only returned the number of PC's on our network at the time.
Last edited by Mandelbrot; Nov 27th, 2001 at 12:07 PM.
-
Nov 27th, 2001, 12:08 PM
#4
Enumerate in computerese means to list the names of, not count.
It's a Computer Science term run amok.
The function will return all the NAMES of connected computers.
Search the list for the one you want. If you don't find it, it isn't there. Read the link.
-
Nov 27th, 2001, 12:28 PM
#5
Addicted Member
Ermmm...
Sorry, Jim - you're right!
I see why it was doing what it was doing, now.
Doah!
Thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|