本文介绍了Vb.net如何远程获取另一台计算机的IP地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

how can i find ip address of other computers remotely?
it does not matter using cmd or others, as long it is in vb code.





我有什么尝试过:





What I have tried:

i have tried using cmd, but the arguments is for own pc.

Dim ps As New Process
With ps.StartInfo
.FileName = "cmd.exe"
.Arguments = "/C ipconfig | findstr /i ipv4"
.CreateNoWindow = True
.UseShellExecute = False
.RedirectStandardOutput = True
End With

ps.Start()
ps.WaitForExit()

Dim output As String = ps.StandardOutput.ReadToEnd()
ps.Close()
MsgBox(output)

推荐答案


这篇关于Vb.net如何远程获取另一台计算机的IP地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-15 11:59