title: How to Copy (and increment) Multiple Instances of a File Using Batch File
body: <p>I need to create a batch file that copies a file and increments it upon placing it at the destination. Example.</p>
  
  <pre><code>copy C:\TEMP\MyDoc.txt E:\MyData\
  </code></pre>
  
  <p>Essentially, I need this copy command to copy every time I start it (which it does now just fine). I would like it to increment the file name instead of overwrite it though. If I ran this three times or 100 times (never a certain number) I would like to see on the "MyData" folder:</p>
  
  <p>MyDoc.txt</p>
  
  <p>MyDoc(1).txt</p>
  
  <p>...</p>
  
  <p>Or Copy (1) I'm not really sure what the syntax is for a duplicated file nor do I necessarily care. I just want to ensure that I'm not overwriting the pre-existing file on my jump drive.</p>
  
  <p>The catch is I'm doing this on an Allen Bradley PanelView Plus that is old and running Windows CE. Any help would be greatly appreciated.</p>