[Development] [Interest] Executing PowerShell command with quotes using QProcess

Joerg Bornemann joerg.bornemann at digia.com
Thu Apr 3 14:00:54 CEST 2014


On 03-Apr-14 13:12, Oswald Buddenhagen wrote:

>> one could use "cmd /c echo hello" at least I do so, or this somehow bad?
>>
> it's a double-fail, because in addition to the weird echo behavior, you
> also have the even more weird cmd behavior (which can be modified
> further with the /s flag).

Indeed!

C:\>cmd /c echo """hello"""
"""hello"""

cmd.exe is just marvellous. I'm stunned by its beauty and consistency.


Joerg



More information about the Development mailing list