Solved

How to retreive netbios information with an ip address

Posted on 2002-05-08
4
153 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
Comment Utility
listening
0
 
LVL 7

Accepted Solution

by:
Motaz earned 500 total points
Comment Utility
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
Comment Utility
Listening..
0
 
LVL 1

Expert Comment

by:pnh73
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 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

7 Experts available now in Live!

Get 1:1 Help Now