On Thu, 24 Jun 2021, Sven Schreiber wrote:
Am 24.06.2021 um 02:38 schrieb Allin Cottrell:
>
> <windows>
> C:\WINDOWS\system32\cmd.exe /c "c:\users\cottrell\printarg.exe" \
> "foo" 1>"c:\users\cottrell\print.out"
> 'c:\users\cottrell\printarg.exe" "foo' is not recognized as an
internal
> or external command, operable program or batch file.
> </windows>
I found a discussion of this on stackoverflow. The weird and
wonderful way of getting this to work is to pass the /s flag to
cmd.exe and wrap the entire command line in an additional pair of
quotes:
cmd.exe /s /c ""some.exe" "some arg" > "some
out""
That's now in git.
Allin