title: Batch file that copy itself to folders in current directory?
body: <p>The Scenario is this.</p>
  
  <p>I have a batch file in I:\test.bat
  In I drive, there are 3 folders. like this.</p>
  
  <pre><code>I:\folder1
  I:\folder2
  I:\folder2\folder3
  </code></pre>
  
  <p>Assume that I don't know the name of folder1, folder2, and folder3
  So, How can I make a batch file that knows the folders in the current path and then copy it with the same name?</p>
  
  <p>I want to have this.</p>
  
  <pre><code>I:\folder1\test.bat
  I:\folder2\test.bat
  I:\folder2\folder3\test.bat
  </code></pre>
  
  <p>How do you make that happen?</p>