title: Using xcopy in VBS (With a Twist)
body: <p>Okay, so here's the deal: I'm trying to put together a script that will perform a simple xcopy. The problem is I want the users to be able to browse for the source and destination folders. I've got a couple simple parts, but I've been unable to piece them together, especially trying to differentiate the source from destination, and trying to get the output from the browse function...</p>
  
  <pre><code>Set objShell = CreateObject("Shell.Application")
  Set objFolder = objShell.BrowseForFolder(0, "Example", 1, "c:\Programs")
  
  Set objShell = CreateObject("Shell.Application")
  Set objFolder = objShell.BrowseForFolder(0, "Example", 1, "c:\Programs")
  
  Set objShell = WScript.CreateObject("WScript.Shell")
  objShell.Run "Xcopy ""objShell"" ""objShell"" /C /D /E /H /I /K /R /S /Y"
  </code></pre>
  
  <p>Any help would be greatly appreciated.</p>