I want to call tshark.exe from a c++ script via ShellExecute. Is there any way to parse cmd arguments to the application? e.g. specify output file like this
tshark -w output.pcap
Here is the code
#include <Windows.h>
#include <shellapi.h>
int main()
{
ShellExecute(NULL, "open", "tshark.exe", NULL, "C:\Program Files\Wireshark", SW_SHOWDEFAULT);
return 0;
}