title: How to copy only files(not directories) using batch file?
body: <p>The directory structure is:  </p>
  
  <pre><code>  Images
      -Folder1
        -image1.jpg
        -image2.jpg
      -Folder2
        -image3.jpg
        -image4.png 
      -Folder3
        -image6.png
        -image7.jpg 
      -Folder4
  </code></pre>
  
  <p>I want to copy all images(i.e *.jpg, *.png) files only (not the folders) into the parent directory("Images"). </p>
  
  <p>I have tried using "robocopy" as follows:</p>
  
  <pre><code>robocopy /np ..\..\Exam\Images ..\..\Exam\Images *.jpg *.png /S
  </code></pre>
  
  <p>Here all files as well as folders are copied :(. But I need only files to be copied. How to do this?</p>
  
  <p>Many many thanks in advance!</p>