title: How to move multiple files to New Directory
body: <p>Good Morning All!</p>
  
  <p>I have been working on a verification and move script for our backups at my office. Everything works great except it seems to only be moving the first file in the .txt file it is reading from. I need it to move all the files that are listed in the smc_raw.txt location to the one specified in the script. </p>
  
  <p>Thanks!</p>
  
  <pre><code>@echo off
  SET /P dir=Input Start File:
  echo.
  "C:\Program Files\StorageCraft\spx\image.exe" qp %dir% %1 f=fsr “d=$n” &gt; Z:\StorageCraft\SMC\smc_raw.txt
  setlocal
  SET LOGFILE=Z:\StorageCraft\SMC\smc_log.txt
  SET /P AREYOUSURE=Raw Data has been saved! Check the smc_raw.txt File! Do you want to continue the SMC Copy(Y/[N])?
  IF /I "%AREYOUSURE%" NEQ "Y" GOTO END
  REM Use /f to read the contents of a file, and %%i to reference the line you just read:
  for /f %%i in (Z:\StorageCraft\SMC\smc_raw.txt) do (
      move %%i Z:\StorageCraft\SMC &gt;nul 2&gt;&amp;1
      if errorlevel 1 (
          echo %%i : Move failed &gt;&gt; %LOGFILE%%
      ) else (
          echo %%i : Move successful &gt;&gt; %LOGFILE%
      )
  )
  break &gt; Z:\StorageCraft\SMC\smc_raw.txt
  setlocal
  
  </code></pre>
  
  <p><strong>EXAMPLE smc_raw.txt</strong></p>
  
  <pre><code>"Z:\StorageCraft\W10SOLID21VM\C_VOL-b001.spf" "Z:\StorageCraft\W10SOLID21VM\C_VOL-b001-i064-cd-cm-cr.spi" "Z:\StorageCraft\W10SOLID21VM\C_VOL-b001-i094-cd-cm.spi" "Z:\StorageCraft\W10SOLID21VM\C_VOL-b001-i099-cd-cm.spi" "Z:\StorageCraft\W10SOLID21VM\C_VOL-b001-i102-cd-cw.spi" "Z:\StorageCraft\W10SOLID21VM\C_VOL-b001-i109-cd-cw.spi" "Z:\StorageCraft\W10SOLID21VM\C_VOL-b001-i116-cd-cw.spi"
  </code></pre>