title: Read stdin stream in a batch file
body: <p>Is it possible to use a piped stdin stream inside a batch file?</p>
  
  <p>I want to be able to redirect the output of one command into my batch file <code>process.bat</code> list so:</p>
  
  <pre><code>C:\&gt;someOtherProgram.exe | process.bat
  </code></pre>
  
  <p>My first attempt looked like:</p>
  
  <pre><code>echo OFF
  setlocal
  
  :again
  set /p inputLine=""
  echo.%inputLine%
  if not (%inputLine%)==() goto again
  
  endlocal
  :End
  </code></pre>
  
  <p>When I test it with <code>type testFile.txt | process.bat</code> it prints out the first line repeatedly.</p>
  
  <p>Is there another way?</p>