title: Batch print loop for pdf
body: <p>I would like to create a simple batch file that prints all my PDF files ffrom a folder. 
  But it seems that within this <code>FOR</code> loop I cannot use:</p>
  
  <pre><code>ping 1.1.1.1 -n 1 -w 5000 &gt;nul
  taskkill /F /IM AcroRd32.exe
  </code></pre>
  
  <p>Why?</p>
  
  <p>My batch file:</p>
  
  <pre><code>:AAA
  
  for %%i in (*.pdf) do (
    "C:\Programme\Adobe\Reader 8.0\Reader\AcroRd32.exe" /t %%i
    ping 1.1.1.1 -n 1 -w 5000 &gt;nul
    taskkill /F /IM AcroRd32.exe
  )
  
  copy u:\print\*.pdf u:\print\prited_files
  del *.pdf
  echo wait for next print job
  ping 1.1.1.1 -n 1 -w 30000 &gt;nul
  
  GOTO AAA 
  </code></pre>