Solved

How to retreive netbios information with an ip address

Posted on 2002-05-08
4
163 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

820 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