Sri wrote:
> Thomas ....thanks again for your input.
> I will try for createprocess  again, however I used the system() call in the
> same way as you told it and infact also checked the command line string
> using sprintf to ensure that the execuatble path is in quotes and everything
> is proper but stiil I'm getting the same error.
> 
> Regards,
> 
> Sri

>> system("cmd /C \"C:\\Program Files\\Wireshark\\tshark.exe\" -r
>> C:\\input\\tcpdump.cap -R \"tcp.dstport==7275 && ulp.msSUPLPOS\" -V >
>> C:\\output\\dump.txt");

Make sure the command works from the command-line before sticking it 
into a C/C++ program.  Maybe double escaping and quoting the whole thing 
like this:

system("cmd /C \"\\\"C:\\Program Files\\Wireshark\\tshark.exe\\\" -r 
C:\\input\\tcpdump.cap -R \\\"tcp.dstport==7275 && ulp.msSUPLPOS\\\" 
-V\" > C:\\output\\dump.txt");

Will solve the problem.  Basically boils down to:

cmd /C "\"C:\Program Files\Wireshark\tshark.exe\" -r 
C:\input\tcpdump.cap -R \"tcp.dstport==7275 && ulp.msSUPLPOS\" -V" > 
C:\output\dump.txt


-- 
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197

*NEW* MyTaskFocus 1.1
Get on task.  Stay on task.

http://www.CubicleSoft.com/MyTaskFocus/

Reply via email to