nbtstat - getting NetBIOS name of remote machine

  • Thread starter Thread starter siddharth jain
  • Start date Start date
S

siddharth jain

hello

I want to write a little console application to get the NetBIOS names
of a remote machine...exactly like the command nbtstat -a [IP], but in
a programmatic way.
I googled around quite a bit but without success. Could someone plz
guide me how to go abt doing this.

Thanks
Siddharth
 
Also, is there any way to call the nbtstat command from a program and
get the output in a string?

Thanks again.
Siddharth
 
You want to have a look at the diagnostics classes, and the system.proccess
classes. These will alow you to execute a command line tool and redirect the
output to a string, Then you can parse the string to get what you need.
 
Back
Top