how to export csv file using tshark with a button in an app c#
I write a button using Process() open cmd and export csv file using tshark from a pcap file.But when i try this,cmd just rung in a few seconds then exit and nothing happen in cmd.I can capture with the same code but i cant export csv.What wrong.Pls help me.Thank in advance Code:
Process b = new Process();
b.StartInfo.FileName = "cmd.exe";
b.StartInfo.Arguments = @"/c C:\Users\long\wireshark\tshark -r test1.pcap > test1.csv";
b.Start();