title: Xcopy variable declaration
body: <p>This cmd command gives me the file I am after .</p>
  
  <blockquote>
    <p><code>dir /b /a-d "\\teams1.sharepoint.xx.com\teams\Contractcenter_Volume Direct Contracts\Shared Documents\"|findstr /b "CONTRACT" &gt;"C:\AIRCR_CHANGE1_PATSY\aaafiles.tmp"</code></p>
  </blockquote>
  
  <p>Now how do I feed in this filename into xcopy to put in a nice batch file ?</p>
  
  <p>xcopy "Source file path" "Destination File path"</p>
  
  <p>Do I need to Open file, read filename and store as variable , then do xocpy "variable for source" " Destination File path"</p>