I have Windows XP Home SP3 running. Trying to run this command:
cmd /c "C:\Program Files\TortoiseSVN\bin\subwcrev.exe" .. ..\Modules\getbuildinfo.c Win32-temp-Debug\getbuildinfo2.c
It works fine (ignore the exact program and file names). However, when quoting the last argument, I get an error:
cmd /c "C:\Program Files\TortoiseSVN\bin\subwcrev.exe" .. ..\Modules\getbuildinfo.c "Win32-temp-Debug\getbuildinfo2.c"
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
When run without cmd /c but directly, both command lines run without errors. I used the cmd /c to debug a similar problem I had with system calls from a C program.
What is wrong with cmd here?