I am trying to run the following commands as part of an MSBuild script:
for /R . %f in (*.targets) do copy /Y \"%f\" \"C:\\Program Files (x86)\\MSBuild\\Microso
I have just explained in your previous question. In that case you need to add extra % in front of your variables. It is explained in help of FOR command as follows
To use the FOR command in a batch program, specify %%variable instead of %variable.
Had to use %% and not %.