title: Batch script to move files that contain certain string
body: <p>Hi guys just got the following code script running to search in a directory for files that contain the string "ABC" and move them to the directory at the end.</p>
  
  <pre><code>for /f "eol=: delims=" %%F in ('dir /b^|find "ABC"') do move /Y "%%F"  "C:\DESTINATION_DIRECTORY"
  </code></pre>
  
  <p>Was wondering how to modify this to not have to be run from the input directory, i.e to add a <em>SOURCE_DIRECTORY</em> variable so I can run this script from elsewhere but have it parse thru the <em>SOURCE_DIRECTORY</em>.</p>
  
  <p>Thanks for any help.</p>