spawnProcess command-line arguments help

Martin via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Aug 3 16:48:08 PDT 2014


When I use the spawnProcess function in std.process, the command 
line arguments that I provide to the function seem to get 
"quoted". Is there a way to tell the spawnProcess function that I 
want the command line arguments to be non-quoted?

Example:
spawnProcess(["SomePath\\Test.exe"], ["-silent"]);
and the command line becomes: "SomePath\Test.exe" "-silent" (with 
the quotes exaclt like shown).

Unfortunately (for some strange reason), the spawned process only 
responds to non-quoted arguments passed through the command line. 
So the command line should be exactly: "SomePath\Test.exe" -silent

Is there any way to achieve this?


More information about the Digitalmars-d-learn mailing list