title: How to print multiple text files within a batch file
body: <p>I have reached a little bit of a brick wall. I understand how to print a single text file within a batch file via Notepad but I am stuck when it comes to multiple text files. Here is what I have so far that really is not working correctly at all:</p>
  
  <pre><code>set /P PrinterFile= "Enter File Name:" | set PrinterFile2= "" | set PrinterFile3= "" | set PrinterFile4= "" | set PrinterFile5= ""
  
  if %PrinterFile%== ""(
      echo please enter valid file
      pause
  ) else (
      notepad.exe /P %PrinterFile%
  )
  
  pause
  </code></pre>
  
  <p>I did not finish the <code>if</code> statements to check for the others because I cannot get the first one to work. Can anyone point me in the correct direction? Thank you!</p>
  
  <p>In the end it needs to be able to take from 0 to 5 text files. for example (name of batch file is <code>printer.bat</code>):</p>
  
  <pre><code>printer   file1.txt file2.txt file3.txt
  </code></pre>