title: batch moving file from subfolder to parent folder
body: <p>So here is my scenario.</p>
  
  <p>This is my folder structure </p>
  
  <pre><code>C:\DOCS\Project1\docname1\image.jpg
                  \docname2\image.jpg
                  \docname3\image.jpg
  C:\DOCS\Project2\docname1\image.jpg
                  \docname2\image.jpg
                  \docname3\image.jpg
  </code></pre>
  
  <p>I'm trying to get a .bat going that will run from the "DOCS" folder, and move all the image.jpgs up one folder from the "docname" folders to the ""Project" folder.</p>
  
  <p>The docname and project names are all different and follow to specific naming scheme so I cant just use a source and dest directory.</p>
  
  <p>It would have to be something that would just find the image.jpg and move it up a parent folder.</p>
  
  <p>this is what ive got but it isnt working.</p>
  
  <pre><code>for /d %f in (docs\*) do (
  pushd %f
  copy .\*.jpg ..
  popd
  )
  </code></pre>
  
  <p>Also I only need one of the .jpgs per project folder. so replacing/renaming isnt an issue.</p>