View Single Post
Old Sep 5th, 2007, 6:43 PM   #1
PaCkEtPiRaTe
Newbie
 
Join Date: Aug 2007
Posts: 24
Rep Power: 0 PaCkEtPiRaTe is on a distinguished road
Outputting command data to a label?

Well, I'm just screwing around a bit and want to make a program to ping the website I input into the text box when I click a button. I want it to output the data of the ping to a label. Here's the code I used... Note I haven't coded in VB for about a year and a half and I'm rusty...

Private Sub cmdPing_Click()
Shell ("ping " + txtPing.Text > lblPing.Caption)
End Sub

I got a Runtime Error 53 saying file not found... Anyone know what's wrong?
PaCkEtPiRaTe is offline   Reply With Quote