Results 1 to 5 of 5

Thread: Checking for existence of computer

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2001
    Location
    canada
    Posts
    22

    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

  2. #2
    jim mcnamara
    Guest
    This will enumerate (list) all the computers in the domain

    http://www.mvps.org/vbnet/code/netwo...serverenum.htm

  3. #3
    Addicted Member Mandelbrot's Avatar
    Join Date
    Aug 2001
    Location
    Work, as usual!!
    Posts
    241

    Unhappy 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.

  4. #4
    jim mcnamara
    Guest
    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.

  5. #5
    Addicted Member Mandelbrot's Avatar
    Join Date
    Aug 2001
    Location
    Work, as usual!!
    Posts
    241

    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
  •  



Click Here to Expand Forum to Full Width