title: moving all the .pdf files from the subdirectories to the directory of the same name created in the root directory inside the directory called "PDF"
body: <p>I have created a batch file to move all the pdf files from the sub folders to the folder "PDF" created in the root directory while running the batch.
  Now I required to create the Sub folders of the same name which contains pdf files inside the "PDF" folder in the root directory and move the pdf files to the respective sub folders.
  I have mentioned my code below,please provide me a modified code to get an appropriate result.</p>
  
  <pre><code>md PDF
  for /r "%cd%" %%x in ("*.pdf") do (move "%%x" "%cd%\PDF")
  </code></pre>
  
  <p>Thanks in Advance
  Vijistha </p>