title: CMD/Batch Prompting for Input loop without goto command
body: <p>I have a loop scanning for the files of a folder and I want to ask for each file if it should be moved or not. As I am already in that loop I can't use goto commands. </p>
  
  <p><strong>How can I prompt a input loop (yes / no) without using a goto command?</strong></p>
  
  <pre class="lang-bash prettyprint-override"><code>@echo off
  setlocal enableDelayedExpansion
  
  FOR %%a in (*.jpg) DO (
  
  :: ask
  set /p Input="Should !a! be moved? (yes/no)"
  
  if %Input% == 'yes' (
  MOVE !a! path/
  )
  
  if %Input% == 'no' (
  :: just move on in loop
  )
  
  :: if not yes or no goback to ask
  
  )
  </code></pre>