Hello,
I want to get the output of "netstat -n" into file for later checks.
Neither a redirection by "netstat -n > output.txt" and "netstat -n 2> output.txt" nor a call of "CreateProcess()" in C++ program does it correctly.
The problem is, the tool netstat delivers its output always on display shortly and closes the output after finished.
Does anybody know a way, how to get the result into a textfile or memory in C++ program?
Would be great, if someone could help me.
Best ragards, Andy