Do you know how to use the shell api (if you don't Ill post it later)
Just execute "C:\windows\ping.exe" with the paramter of the ip address.
If you have it minimized or hidden the user won't ever see it, but I don't know how you will get data back.
Brad, Hey! email me any time! Bradsvb@yahoo.com
Well ya need the SOCKETS API declarations and a significant investment in brain surgery...actually it is not that bad...I could send an example of an app I scraped off the net somewhere...if you don't mind posting your email address...bad netiquette, but hey...
In using the Shell API, you could execute the line
c:\WINNT\System32\ping.exe 127.0.0.1 >result.txt
This will send the ping results to a file instead of the dos screen. You could set up your progam to check the size of the file when the size is greater than 0. You can then get the data by parsing the file.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.