I have the following command:
system("start \"\" \"C:\\Program Files\\Wireshark\\tshark.exe\" -a duration:130 -i 3 -T fields -e frame.number -e frame.time -e _ws.col.Info > c:\\test\\myfile.csv");
The aim of the command is to start tshark and have it listen, in the background, for a set time. For that purpose, the command works fine. My issue is that the output ">" is ignored, it only writes to console, not file.
If I don't spawn it to a new window the output is written to the target file without issue. Can anyone correct the command so that it writes to file and runs in the background?
I'm new to c++ and this has been driving me nuts...