title: Copying a file in specific folders using Batch file
body: <p>I have two PDFs -  <code>.COMInterop and C# Notes - Notes 1 to 10.pdf</code> and <code>.COMInterop and C# Notes - Notes 11 to 20.pdf</code> kept in the directory <code>D:\Dropbox\Sample C# Notes</code></p>
  
  <p>The folder <code>Sample C# Notes</code> also has some subfolders like <code>0001</code>, <code>0002</code>, <code>0003</code> and so on till <code>0300</code>.</p>
  
  <p>I am writing the following command (given by SO user lotpings) in a batch file to copy the pdf from <code>Sample C# Notes</code> to all the subfolders inside it (0001, 0002, 0003...)</p>
  
  <pre><code>for /D %%x in ("D:\Dropbox\Sample C# Notes\*") DO (
    COPY "D:\Dropbox\Sample C# Notes\.COMInterop and C# Notes - Notes 1 to 10.pdf" "%%x\"
  )
  </code></pre>
  
  <p>How do I modify this code so that I can copy :</p>
  
  <p><code>.COMInterop and C# Notes - Notes 1 to 10.pdf</code> into folders <code>0001</code> to <code>0100</code></p>
  
  <p>and </p>
  
  <p><code>.COMInterop and C# Notes - Notes 11 to 20.pdf</code> into folders <code>0101</code> to <code>0300</code></p>