Executing DOS Commands

Code:
Dim command As String = "ping 192.168.1.1"

System.Diagnostics.Process.Start(command)
 
Dont confuse DOS commands with win32 console applications :)

And if you want to ping something, you can do it from right within .net.
 
you can do it from right within .net
Not that easily, however. Takes a few dozen lines of code, at best. Of course you can head over to Google and find a class that does it for you, but hey, most people cant even find their car keys, nevermind something on the *gasp* internet. One of us should put a ping class on the list of things to add to the Code Library.
 
Thanks a lot guys. Im going to find a good ping class and put it in the Code Library. I didnt even think of finding a class already listed.
 
Back
Top