CMD && comand not work
Paul Backus
snarwin at gmail.com
Thu Dec 10 21:07:40 UTC 2020
On Thursday, 10 December 2020 at 21:01:30 UTC, Marcone wrote:
> In this very generic example && not work to finalize the
> instruct and start a new instruct. Yes, I know dmd can build
> and run without it, but this is only a example.
>
> execute(["cmd", "/c", "dmd test.d", "&&", "start test.exe"]);
>
> How can I substitute && ?
`&&` is a feature of the shell, so you need to use `executeShell`.
Doc: http://phobos.dpldocs.info/std.process.executeShell.html
More information about the Digitalmars-d-learn
mailing list