title: Batch script to search multiple directory and move it to a specific folder
body: <p>I want to create a script that searches a multiple directory "eg: TEST" and move it to a specific location in a folder. I have tried using the below script. It display the folder location 
  example:</p>
  
  <pre><code>"E:\Example\TEST"
  "E:\TEST\TEST"
  </code></pre>
  
  <p>Please check the script i have created. Can anyone help?</p>
  
  <pre><code>@echo off
  
  set filename=TEST
  
  set searchPath=E:\
  
  set Destination= E:\FOUND
  
  FOR /R "%searchPath%" %%a  in (%filename%) DO (
      IF EXIST "%%~fa" (
          echo "%%~fa"
      )
  )
  
  move "%%~fa" "%Destination%"
  </code></pre>