title: Powershell script for creating and naming a folder
body: <p>Ok, I'll try again. This got deleted before I had a chance to reply.</p>
  
  <p>I'm new to Powershell and I've tried with no success to build a script to create a new folder, prompt the user to name the folder, then copy/move files into the new folder from an external drive. I have searched your site and the Net, but no luck. Any advice please? Thanks.</p>
  
  <p>I've used the following lines to create a folder and copy files to it:</p>
  
  <pre><code>new-item "C:\Users\Dan\Pictures\DANTEST" -type directory
  Copy-Item H:1*.jpg "C:\Users\Dan\Pictures\DANTEST"
  </code></pre>
  
  <p>But that, as you can see, has a pre-determined folder name in the script. I've only found a VB Script that brings up a box for user input, but nothing on how to take the input and apply it to a new folder, then copy the files to that new folder.</p>