Hello,
Just wondering if anyone knew how to run a DOS cmd such as "ping", and get the output to a CString variable to process using MFC? I'm currently using something like:
WinExec("cmd /c \"ping localhost > textfile\"", SW_HIDE);
Which copies the output of the ping to the file "textfile". I'd like to skip the step to read in a file, then process it.
Thanks in advanced!
Just wondering if anyone knew how to run a DOS cmd such as "ping", and get the output to a CString variable to process using MFC? I'm currently using something like:
WinExec("cmd /c \"ping localhost > textfile\"", SW_HIDE);
Which copies the output of the ping to the file "textfile". I'd like to skip the step to read in a file, then process it.
Thanks in advanced!
Comment