MSBuild exec task with for

前端 未结 2 1578
刺人心
刺人心 2021-01-26 18:55

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
         


        
2条回答
  •  被撕碎了的回忆
    2021-01-26 19:43

    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.

提交回复
热议问题