Hi again,
Win~1 supports some weird command line syntaxises:
"c:\some path\program.exe - without closing quote
"c:\some path\program.exe"foo bar qux - runs program.exe with:
argv[0] = "c:\some path\program.exe"foo (or something similar) argv[1] = bar argv[1] = qux
I'm going to disallow the first syntax to be able to join a command and an argument vector, and the second syntax because it's not clear whether all CRTL-s will handle it like msvcrt (the splitting is done by the CRTL, not Windows). The supported variants will be:
"c:\some path\program.exe" "c:\some path\program.exe" foo bar qux
as expected by any sane person. For the arguments, the normal win~1 quoting/escaping rules will apply:
"foo bar" is a single argument "foo "bar" is a single argument containing a " "foo \"bar" is a single argument containing " etc.
http://msdn.microsoft.com/en-us/library/windows/desktop/bb776391.aspx