Hi, When using
everything is fine. When the string is "aaa bbb" I get an error on windows 7 saying "bbb" was unexpected in this context. Any clue what is the issue? Thanks, zf asked 25 Apr '13, 10:38 zfme edited 25 Apr '13, 11:46 Kurt Knochner ♦ |
One Answer:
That's a quoting 'problem' of the DOS box. Please try tripple-quotes.
Regards answered 25 Apr '13, 11:55 Kurt Knochner ♦ |
Thank you very much. It works.
@zfme
Your "answer" has been converted to a comment as that's how this site works. Please read the FAQ for more information.
If an answer has solved your issue, please accept the answer for the benefit of other users by clicking the checkmark icon next to the answer. Please read the FAQ for more information.
For PowerShell you'll need to use a double escape method to quote the argument, e.g. a "\" for the Windows command processor and with a "`" for the PowerShell processor giving:
c:\tshark -r input frame contains `"aaa bbb`" -w output
See this blog entry for more on the intricacies of calling external commands from Powershell.