How to create a network troubleshooter software

N

Neung

Dear Sir,

I'm not sure I'm in the correct discussion group or not.

I would like to create a tool like a small script or program to run at a
computer and then returns all networking results.
For example: After run the script or the program, it returns the results of
1. ipconfig /all
2. ping to an specific IP. (Eg., Gateway, DNS)
3. Status of Local Area Connection and Wireless Connection (Enable, Disable,
Yellow Quote, Enable but red cross with no network connection)
4. Results of netstat -an
5. Results of Computer Name and MAC Address

Moreover, the script or program should have an option to clieck to run the:
1. Delete Offline file and Cookie in Internet Explorer
2. Run command Ipconfig /flushdns and Ipconfig /registerdns

Please kindly advice which programing language or any tools to use to create
the script or software?

Actually I'm newbie in Programming Language.

Thank you for your kindness.
Best Regards,
Neung
 
K

kimiraikkonen

Dear Sir,

I'm not sure I'm in the correct discussion group or not.

I would like to create a tool like a small script or program to run at a
computer and then returns all networking results.
For example: After run the script or the program, it returns the results of
1. ipconfig /all
2. ping to an specific IP. (Eg., Gateway, DNS)
3. Status of Local Area Connection and Wireless Connection (Enable, Disable,
Yellow Quote, Enable but red cross with no network connection)
4. Results of netstat -an
5. Results of Computer Name and MAC Address

Moreover, the script or program should have an option to clieck to run the:
1. Delete Offline file and Cookie in Internet Explorer
2. Run command Ipconfig /flushdns and Ipconfig /registerdns

Please kindly advice which programing language or any tools to use to create
the script or software?

Actually I'm newbie in Programming Language.

Thank you for your kindness.
Best Regards,
Neung

For low-level network operations you can use WMI(by referencing
System.Management.dll), to perform basic network operations such as
pinging you can take a look at "My.Computer.Network.Ping".

Also, you can redirect console output to your application using native
Windows shell commands like ipconfig and netstat via Process

' eg: redirect "ipconfig /all" to a textbox

' ----Code Begins----
Dim start_info As New ProcessStartInfo("cmd.exe", "/c ipconfig /all")
start_info.UseShellExecute = False
start_info.CreateNoWindow = True
start_info.RedirectStandardOutput = True
start_info.RedirectStandardError = True

' Make the process and set its start information.
Dim proc As New Process()
proc.StartInfo = start_info

' Start the process.
proc.Start()

' Attach to stdout and stderr.
Dim std_out As IO.StreamReader = proc.StandardOutput()

' Display the results.
TextBox1.Text = std_out.ReadToEnd()

' Clean up.
std_out.Close()

proc.Close()

' ----Code Ends----


Hope this helps,

Onur Güzel
 
N

Neung

Dear Onur,

Thank you very much for your reply, I'm really appreciated.

Regards,
Neung
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top