473,799 Members | 3,114 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to create a network troubleshooter software

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
Aug 2 '08 #1
2 2865
On Aug 2, 7:06 am, Neung <Ne...@discussi ons.microsoft.c omwrote:
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.Manageme nt.dll), to perform basic network operations such as
pinging you can take a look at "My.Computer.Ne twork.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 ProcessStartInf o("cmd.exe", "/c ipconfig /all")
start_info.UseS hellExecute = False
start_info.Crea teNoWindow = True
start_info.Redi rectStandardOut put = True
start_info.Redi rectStandardErr or = 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.StandardOu tput()

' Display the results.
TextBox1.Text = std_out.ReadToE nd()

' Clean up.
std_out.Close()

proc.Close()

' ----Code Ends----
Hope this helps,

Onur Güzel
Aug 2 '08 #2
Dear Onur,

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

Regards,
Neung

"kimiraikko nen" wrote:
On Aug 2, 7:06 am, Neung <Ne...@discussi ons.microsoft.c omwrote:
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.Manageme nt.dll), to perform basic network operations such as
pinging you can take a look at "My.Computer.Ne twork.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 ProcessStartInf o("cmd.exe", "/c ipconfig /all")
start_info.UseS hellExecute = False
start_info.Crea teNoWindow = True
start_info.Redi rectStandardOut put = True
start_info.Redi rectStandardErr or = 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.StandardOu tput()

' Display the results.
TextBox1.Text = std_out.ReadToE nd()

' Clean up.
std_out.Close()

proc.Close()

' ----Code Ends----
Hope this helps,

Onur Güzel
Aug 3 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3122
by: Keith Jakobs, MCP | last post by:
Greetings: I had seen several posts around the Internet about this issue from a few months back, but have been unable to find a resolution ... I have a user who is trying to get started with Visual Studio.NET 2003. We have uninstalled and reinstalled the Product.... then we did a complete cleanout of development products, re-installed IIS, and reinstalled JUST Visual Studio.NET 2003 with Framework 1.1 (no more 2002 edition or...
1
2662
by: intl04 | last post by:
I am getting strange print-related error messages when trying to create (not print!) reports. For example, when I click 'new' to create a report then choose 'design view', I get an error message that says: 'There was a problem retrieving printer information for this object. The object may have been sent to a printer that was unavailable.' When I choose 'report wizard', I can go through all of the steps but then I get an error message...
10
4994
by: robwharram | last post by:
Hi, I'm quite frustrated in the fact that I can't even display a simple "Hello World" message on .Net. I've been through all of the groups and searched all over the place and haven't been able to figure out the solution to this problem. First off, the server is Windows Server 2003 - Web Edition (IIS 6) and I'm using .Net Framework v1.1.4322.
4
4674
by: Jeremy S. | last post by:
We're in the process of writing a new Windows Forms app and the desktop support folks want for it to be run from a network share. I know it's possible (i.e., just have the framework on the clients and a desktop shortcut to the exe out on the network)... but is it really a good idea? What are some arguments for and against running a .NET Windows Forms client from a network share? Here is my initial list... I'd appreciate any additions,...
0
1135
by: Steve B. | last post by:
Hi, I'm investigating on how to create an intranet web application that provide corporate users a way to choose applications and install it with one click. The applications are corporate application or 3rd party software (visio, acrobat reader, etc.). Setup files are stored in some network shares. Since web apps run in IE, a javascript cannot be use to run an executable application. What are the possible solutions for me to allow...
4
3961
by: aki | last post by:
Hi all, i am writing codes for implementing network protocols. i have written a method which is receiving a packet from network. i have assumed that the packet i will receive will be of type char*. i need to test my method and for that i want to create a network buffer which will contain a packet of format as-> example of Configuration req packet uint8_t code;
0
1922
by: Connected | last post by:
The following info could be useful for anyone getting weird behaviour after installing Altova xmlSPY (so aptly named!) I've just wasted 3 days of my life trying to find out why I've lost network browsing capabilty (network neighborhood) on my xp home network. Recently installed XMLSPY was to blame. Without my permission (other than a vague meaningless sentence in the EULA), Altova's install program opened ports on my firewall and wrote...
2
2053
by: Connected | last post by:
The following info could be useful for anyone getting weird behaviour after installing Altova xmlSPY (so aptly named!) I've just wasted 3 days of my life trying to find out why I've lost network browsing capabilty (network neighborhood) on my xp home network. Recently installed XMLSPY was to blame. Without my permission (other than a vague meaningless sentence in the EULA), Altova's install program opened ports on my firewall and wrote...
1
7682
by: Connected | last post by:
The following info could be useful for anyone getting weird behaviour after installing Altova xmlSPY (so aptly named!) I've just wasted 3 days of my life trying to find out why I've lost network browsing capabilty (network neighborhood) on my xp home network. Recently installed XMLSPY was to blame. Without my permission (other than a vague meaningless sentence in the EULA), Altova's install program opened ports on my firewall and wrote...
0
9538
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10470
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10247
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10214
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10023
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6803
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4135
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3751
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2935
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.