Solved

How to retreive netbios information with an ip address

Posted on 2002-05-08
4
159 Views
Last Modified: 2010-04-04
Hi All, I want to know how to retreive all netbios information that Nbtstat -A IpAddress can retreive
thx :)
0
Comment
Question by:mabell
4 Comments
 
LVL 3

Expert Comment

by:smurff
ID: 6998417
listening
0
 
LVL 7

Accepted Solution

by:
Motaz earned 500 total points
ID: 6998468
I tried a solution, but it is not the best:

- Drop Memo and Edit box
- Add ShellApi to unit clause
- Drop a button and write on it's Click:

var
  F: TextFile;
begin
  AssignFile(F, 'c:\Exec.bat');
  Rewrite(F);
  Writeln(F, 'Nbtstat -A ' + Edit1.Text + ' >c:\Result.txt');
  CloseFile(F);
  ShellExecute(handle, '', 'c:\Exec.bat', nil, nil, sw_Hide);
  Sleep(5000);
  Memo1.Lines.LoadFromFile('c:\Result.txt');
end;

- Run the application and write the IP address in edit1

Motaz
0
 
LVL 6

Expert Comment

by:Stuart_Johnson
ID: 6998477
Listening..
0
 
LVL 1

Expert Comment

by:pnh73
ID: 9005379
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept answer from Motaz

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Paul (pnh73)
EE Cleanup Volunteer
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now