title: copy directory using variable name in batch script
body: <p>I have a question I hope you will be willing to answer. I have a fair amount of experience writing BASH scripts, but know next to nothing about Windows scripting. So my question may be very basic. I have a script that asks for user input and uses that input to create two directories. Then the script moves .mp3 files into the newly created directories. So far so good.</p>
  
  <p>The problem is that I then want to copy the newly created directories (along with the files they contain) to my MP3 player. ( D:\MUSIC),</p>
  
  <p>What happens when I run the script, however, is that the mp3 files are copied to the destination directory individually - that is they end up not in a copy of the directory they were copied from, but just in the D:\MUSIC directory. </p>
  
  <p>In other words I end up with:
  D:\MUSIC\file.mp3 instead of D:\MUSIC\new_directory\file.mp3</p>
  
  <p>Below is my script: I would be grateful if you could give me a clue as to what I am doing wrong.</p>
  
  <p>Thank you,</p>
  
  <p>GG</p>
  
  <pre><code>    @echo off
  set /p FOLDER= Name the folder
  cd C:\Users\John\Music\iTunes\iTunes Media\Podcasts\"Coast to Coast AM Podcast" 
  MD %FOLDER%
  Move *.mp3 %FOLDER% 
  Copy %FOLDER% D:\MUSIC
  CD C:\Users\John\Music\iTunes\iTunes Media\Podcasts\"Darkness Radio"
  MD %FOLDER%-DR
  Move *.mp3 %UserInputName%-DR
  Copy "%FOLDER%-DR" D:\MUSIC
  </code></pre>