How do I use the shell command in VB to ping a computer and redirect the output to a file on my C drive?
Thanks!
Printable View
How do I use the shell command in VB to ping a computer and redirect the output to a file on my C drive?
Thanks!
The easiest way would be to create a Batch File and call that from the Shell Command in VB, eg.
In a "PingIt.bat" Batch File..
PING %1 > %2
In VB..
Shell "C:\PingIt.bat www.codeguru.com C:\PingFile.txt"
Aaron Young
Analyst Programmer
[email protected]
[email protected]