Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2004
    Location
    Toronto, ON CANADA
    Posts
    696

    Huh? Get the computer name using the IP address

    Hi everyone,

    I am working on a custom project using AMS and I need to find an easy and reliable way of retrieving a computer name using its IP address.

    The application I am making scans the local network to make backups of software configurations for our customers.

    I have tried with 'nbtstat.exe' in Windows but this can get messy when I'm trying to get the information from the output.

    The command/code/external program only needs to work for Windows 2000/XP. You can also assume that the workstation that this is being run from has Administrative privileges to the target workstation, so using some registry key retrieval method is ok by me.

    If anyone has any ideas, or if someone can write a simple application to do this (and say write it out to a text file) it would be much appreciated.

    Thanks.

  2. #2
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959

  3. #3
    Join Date
    Mar 2004
    Location
    Toronto, ON CANADA
    Posts
    696
    Nice little DLL there. I can see uses for that in other scenarios...

    But is there something I can get that can be passed a value, like:

    getname 192.168.2.171

    would produce a result (or a file with a result) with just the computer name? I just need it to get the result for one workstation at a time.

    Thanks for the reply.

  4. #4
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    Same DLL, different function

    If I didn't mention it, this has to be on a NT (Servered) network to work.
    Attached Files

  5. #5
    Join Date
    Mar 2004
    Location
    Toronto, ON CANADA
    Posts
    696
    Cool thanks Worm.

    I'll give this a go within the next day or so and let you know how it goes.

    As always, many thanks.

Similar Threads

  1. Playback Full Computer Screen size
    By Caldane in forum AutoPlay Media Studio 4.0
    Replies: 2
    Last Post: 10-05-2004, 10:12 PM
  2. URL Address Input
    By sidd in forum AutoPlay Media Studio 5.0
    Replies: 0
    Last Post: 07-14-2004, 03:21 PM
  3. Check if a computer is reachable (ping...)
    By Martin_SBT in forum AutoPlay Media Studio 5.0
    Replies: 13
    Last Post: 01-16-2004, 12:02 PM
  4. Getting the Registered User of the Computer
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 10-01-2003, 02:35 PM
  5. IF statement for mac address ideas
    By Option_Explicit in forum AutoPlay Media Studio 4.0
    Replies: 2
    Last Post: 11-04-2002, 11:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts