tag:help.appveyor.com,2012-11-13:/discussions/questions/31881-for-f-batch-file-loop-not-workingAppVeyor: Discussion 2019-01-04T15:19:36Ztag:help.appveyor.com,2012-11-13:Comment/466820982018-12-18T19:02:46Z2018-12-18T19:02:46ZFor /f batch file loop not working?<div><p>Please demonstrate where you think AppVeyor is not working via a <strong>minimal</strong> repro of the error.<br>
In this case, you can simply start a project with one single text file and run those commands in init stage.</p></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/466820982018-12-19T11:55:47Z2018-12-19T12:08:18ZFor /f batch file loop not working?<div><p>Hi, I have made several tests:</p>
<p><a href="https://ci.appveyor.com/project/double-beep/asmfish-i5x4k/builds/21117299">https://ci.appveyor.com/project/double-beep/asmfish-i5x4k/builds/21...</a><br>
<a href="https://ci.appveyor.com/project/double-beep/asmfish-i5x4k/builds/21117252">https://ci.appveyor.com/project/double-beep/asmfish-i5x4k/builds/21...</a><br>
<a href="https://ci.appveyor.com/project/double-beep/asmfish-i5x4k/builds/21117170">https://ci.appveyor.com/project/double-beep/asmfish-i5x4k/builds/21...</a></p></div>doublebeep7tag:help.appveyor.com,2012-11-13:Comment/466820982018-12-19T17:24:08Z2018-12-19T17:24:08ZFor /f batch file loop not working?<div><p>Just add another <code>%</code> to the loop parameter.<br>
change<br></p>
<pre>
<code>for /f "delims=" %B IN ('ver') do echo %B</code>
</pre>
to<br>
<pre>
<code>for /f "delims=" %%B IN ('ver') do echo %%B</code>
</pre></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/466820982018-12-20T15:16:14Z2018-12-20T15:16:29ZFor /f batch file loop not working?<div><p>Thanks for replying; it works fine. Why should I double percent-signs? My code isn't running from cmd?</p></div>doublebeep7tag:help.appveyor.com,2012-11-13:Comment/466820982019-01-04T15:19:29Z2019-01-04T15:19:29ZFor /f batch file loop not working?<div><p>This has not attracted so much attention. Closing so...</p></div>doublebeep7