title: Batch file to copy files to many machines
body: <p>I need to have a batch file that copies files (8) in my local directory to either a list of machines on the network (hostname or IP) or have me prompt to enter the next hostname/ip</p>
  
  <p>I'd prefer not to have to run the script over and over again to enter the next hostname/ip</p>
  
  <p>I'll also need to see the output for each system to make sure it connected correctly and copied successfully. Perhaps a "ready to process next?" after each machine?</p>
  
  <p>I don't know how to have a batch file does the equivalent of <code>STDIN</code>, so please forgive the <code>?STDIN?</code> placeholder</p>
  
  <p>So far, all I have is </p>
  
  <pre><code>net use S: \\?STDIN?\C$ /user:domain\myusername mypassword  
  
  copy %~file01.txt S:\%SystemRoot%\system32 /y
  copy %~file02.txt S:\%SystemRoot%\system32 /y
  copy %~file03.txt S:\%SystemRoot%\system32 /y
  copy %~file04.txt S:\%SystemRoot%\system32 /y
  copy %~file05.txt S:\%SystemRoot%\system32 /y
  copy %~file06.txt S:\%SystemRoot%\system32 /y
  copy %~file07.txt S:\%SystemRoot%\system32 /y
  copy %~file08.txt S:\%SystemRoot%\system32 /y
  
  net use :s /delete
  
  do it again
  </code></pre>