Dim cmd As new Process()cmd.StartInfo.FileName = "tracert"cmd.StartInfo.Arguments = "baidu.com -h 1"
cmd.StartInfo.RedirectStandardOutput = Truecmd.StartInfo.RedirectStandardInput = Truecmd.StartInfo.UseShellExecute = Falsecmd.StartInfo.CreateNoWindow = True
cmd.Start()Dim info As String = cmd.StandardOutput.ReadToEnd()msgbox(Info)
好象在连着wifi的情况下,不能获得对外的IP呀。
如何才能获得哟?