I have a batch file that worked quite happily until the last two starts, and now it is not. The violation code is as follows:
set uncommittedchanges=1 for /f "tokens=* usebackq" %%a in (`"C:\Program Files\Git\cmd\git" -C "\my\git\repository" status`) do ( if "%%a" == "nothing to commit, working directory clean" ( set uncommittedchanges=0 ) )
And the error I get is
'C: \ Program' is not recognized as an internal or external command, operating program, or batch file.
I am sure that I did not make any changes to these lines, since it worked the last time, and I do not see anything bad in this code.
Can someone determine what is wrong or suggest a parameter that I might have accidentally changed, which affects usebackq?
windows batch-file
Beanfrog
source share