|
-
calling ping thru vb
I am trying to call the ping command from a VB app to test if a web server
is down. I'm basically executing a command line thru CreateProcess and
piping the results to a text file:
ping www.somesite.com >pingresults.txt
This isn't working. pingresults.txt never gets written. If I start a
comand window session (Start|Run|cmd) and then execute the same command,
everything is cool. But, if I do Start|Run|ping www.somesite.com
>pingresults.txt, the command window flashes up but nothing is written to
the output file.
I've also tried calling the executable directly
(c:\winnt\system32\ping.exe), but nothing seems to work. Does anyone know
how I need to call ping thru CreateProcess?
Thanks
MJS
BTW, I am running Win2000 Server.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks