WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

wx.... Functions

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

How to get NetBIOS Name?

Keywords:   Netbios

Question:

Once wxPing has returned a positive (meaning that the host at that particular IP address responded), is there a way to determine whether or not this is a "Microsoft" device. In other words, having only the IP address, is there a function I can use to query the device to see if it has a NetBIOS name? And if so, have it tell me what that NetBIOS name is? This will tell me whether the IP address is assigned to a network device (managed hub, router, switch, etc.) or to a host (NT workstation, NT server, Win9x workstation).

Answer:

Netbios name. Hmmm I dunno. Try example below

Server type? Try some variation of

AddExtender("www9534I.dll")
AddExtender("wwwsk34I.dll")
ip="207.195.133.129"
ipserver=strcat("\\",ip)
xxx=w95ServerType(ipserver)
addr=wxAddr2Host(ip)
Message(xxx,addr)

Article ID:   W14444
Filename:   Get NetBios Name.txt
File Created: 2001:03:01:15:04:56
Last Updated: 2001:03:01:15:04:56