Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim str As New ProcessStartInfo("c:\windows\system32\ping.exe")
Process.Start(str)
str.Arguments = "-t http://bingy.homeip.net"
End Sub
Windows commands in codePing command
Page 1 of 1
3 Replies - 1012 Views - Last Post: 22 November 2007 - 02:58 AM
#1
Windows commands in code
Posted 21 November 2007 - 11:35 AM
I am trying to create a program that will ping a URL constantly so that my dad's aircard will stay connected. I am not sure what I am doing wrong as the program executes but doesn't take into account the arguments.
Replies To: Windows commands in code
#2
Re: Windows commands in code
Posted 21 November 2007 - 12:27 PM
Set the arguments before you start the process.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim str As New ProcessStartInfo("c:\windows\system32\ping.exe")
str.Arguments = "-t http://bingy.homeip.net"
Process.Start(str)
End Sub
#3
Re: Windows commands in code
Posted 21 November 2007 - 09:48 PM
Thank you Jayman you always seem to know how to help me out, LOL
#4
Re: Windows commands in code
Posted 22 November 2007 - 02:58 AM
I made a VB.NET snippet a while back that I believe could help you, if all else fails.
http://www.dreaminco...snippet1327.htm
http://www.dreaminco...snippet1327.htm
This post has been edited by RodgerB: 22 November 2007 - 02:59 AM
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote





|