如何使用c#winforms执行命令(ping IP)和(nslookup IP)? [英] How to execute the command (ping IP) and (nslookup IP) using c# winforms?

查看:311
本文介绍了如何使用c#winforms执行命令(ping IP)和(nslookup IP)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





任何人都可以帮助我获取用于获取多个IP的ping和nslookup命令执行结果的代码吗?



就像上传或添加多个IP一样,它应该使用winforms获取这些IP的结果(C#)



Command1 :( ping IP地址)



Command2 :( nslookup IPaddress)

Hi,

Can anyone help me to get the code for fetching the ping and nslookup command execution result for multiple IPs?

It is like uploading or adding multiple IPs and it should fetch the result for those IPs using winforms(C#)

Command1: (ping IPaddress)

Command2: (nslookup IPaddress)

推荐答案

Hello Kamal,



最好为这些要求构建一个控制台应用程序

你可以参考这些链接



Ping IP地址 -



http://msdn.microsoft.com/en-us/library/hb7xxkfx(v = vs.110).aspx [ ^ ]



Ping nslookup IPaddress

http://www.c-sharpcorner.com/UploadFile/DougBell/NSLookUpDB00112052005013753AM/NSLookUpDB001.aspx [ ^ ]



一切顺利: )
Hello Kamal,

It is better to build a console application for such requirements
You can refer these links

Ping IP address-

http://msdn.microsoft.com/en-us/library/hb7xxkfx(v=vs.110).aspx[^]

Ping nslookup IPaddress
http://www.c-sharpcorner.com/UploadFile/DougBell/NSLookUpDB00112052005013753AM/NSLookUpDB001.aspx[^]

All the best:)


这是一篇可以帮助你的CodeProject文章。



如何重定向应用程序的标准输入/输出 [ ^ ]
Here is a CodeProject article that may help you.

How to redirect Standard Input/Output of an application[^]


这篇关于如何使用c#winforms执行命令(ping IP)和(nslookup IP)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆