MSBuild exec task with for

前端 未结 2 1580
刺人心
刺人心 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.

    0 讨论(0)
  • 2021-01-26 19:44

    Had to use %% and not %.

    0 讨论(0)
提交回复
热议问题