title: CHOICE in FOR loop - Windows Batch
body: <p>I have this loop that repeats itself for every line in an external file. I would like to prompt the user for a choice in every pass, though this doesn't work. I reckon the problem is with the GOTO command breaking the loop somehow. Any thoughts on this?</p>
  
  <pre><code>FOR /F %%i IN (%WORKDIR%\grunt-packages.ini) DO (
      CHOICE /C AN /M "Odinstalovat plugin"
      IF %ERRORLEVEL%==1 GOTO UNINSTALL
      IF %ERRORLEVEL%==2 GOTO SKIP
  
      :UNINSTALL
          ECHO Odstranuji %%i 
          CALL npm uninstall %%i
  
      :SKIP
          ECHO Preskakuji %%i
  )
  </code></pre>