Sri wrote:
> Thomas....I again tried the system() with double escape and quotes
> combination but still I'm getting the same error.
> but there is a curious observation...if I put the actual command line string
> into a batch file and call the batch file using system, it really works
> then... :-)
> here is the example-
> system("d:\\input\\mybatchfile.bat")
>
> contents of mybatchfile.bat ---
> "C:\Program Files\Wireshark\tshark.exe" -r D:\input\tcpdump.cap -R
> "tcp.dstport==7275 && ulp.msSUPLPOS" -V > D:\output\dump.txt
If it works, great. I've not looked at the implementation of system()
in VC++, but under Borland system() took apart the command and analyzed
it for .bat and .cmd extensions. Maybe something similar is happening
and the underlying parser is removing quotes.
As long as it works...
--
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197
*NEW* MyTaskFocus 1.1
Get on task. Stay on task.
http://www.CubicleSoft.com/MyTaskFocus/