DOBON.NETプログラミング道掲示板

■35496 / 2階層)  VB.NETからcmdでpingを実行した時の結果
□投稿者/ ぱんだ 一般人(2回)-(2023/08/22(Tue) 23:54:44)
  • アイコン
    早速の返信ありがとうございます。
    おかげさまで以下のコードで実現できて助かりました。
    これから少しづつ学んでいこうと思います。
    ありがとうございました。
    
            Using p As New Process
                p.StartInfo.FileName = Environment.GetEnvironmentVariable("ComSpec")
                p.StartInfo.UseShellExecute = False
                p.StartInfo.RedirectStandardOutput = True
                p.StartInfo.RedirectStandardInput = False
                p.StartInfo.CreateNoWindow = True
                p.StartInfo.Arguments = "/c ping 127.0.0.1"
                p.Start()
                Dim reader = p.StandardOutput
                Do Until reader.EndOfStream
                    Dim buffer = reader.ReadLine()
                    '以下3行を追加
                    Debug.Print(buffer)
                    TextBox1.Text = TextBox1.Text & vbCrLf & buffer
                    Me.Refresh()
                Loop
                p.WaitForExit()
            End Using

違反を報告
削除キー/

前の記事(元になった記事) 次の記事(この記事の返信)
←Re[1]: VB.NETからcmdでpingを実行した時の結果 /KOZ 返信無し
 
上記関連ツリー

Nomalアイコン VB.NETからcmdでpingを実行した時の結果 / ぱんだ (23/08/22(Tue) 19:38) #35494
Nomalアイコン Re[1]: VB.NETからcmdでpingを実行した時の結果 / KOZ (23/08/22(Tue) 21:00) #35495
  ├Nomalアイコン VB.NETからcmdでpingを実行した時の結果 / ぱんだ (23/08/22(Tue) 23:54) #35496 ←Now
  └Nomalアイコン Re[2]: VB.NETからcmdでpingを実行した時の結果 / ぱんだ (23/08/23(Wed) 00:12) #35497 2023-08-23.png/11KB
    └Nomalアイコン Re[3]: VB.NETからcmdでpingを実行した時の結果 / KOZ (23/08/23(Wed) 05:54) #35498
      └Nomalアイコン Re[4]: VB.NETからcmdでpingを実行した時の結果 / ぱんだ (23/08/23(Wed) 21:05) #35501

All 上記ツリーを一括表示 / 上記ツリーをトピック表示
 
上記の記事へ返信

Mode/  Pass/


- Child Tree -