how to export csv file using tshark with a button in an app c#

asked 2018-05-15 05:18:44 +0000

logn gravatar image

updated 2018-05-15 06:45:57 +0000

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();
edit retag flag offensive close merge delete