title: Moving files with spaces in their names using a batch file
body: <p>this is my first question on here so forgive me if i break any etiquette!</p>
  
  <p>Basically, what i want to do is this:</p>
  
  <p>Move files from folder a to folder b.
  Move files from folder c to folder d.</p>
  
  <p>I want this to happen in the same script continuously. Below is the code i have at the moment.</p>
  
  <pre><code>:loop
  
  echo Ooops
  
  SET src_folder=C:\Users\user\Desktop\a
  SET tar_folder=C:\Users\user\Desktop\b
  SET src_folder1=C:\Users\user\Desktop\c
  SET tar_folder1=C:\Users\user\Desktop\d
  
  for /f %%a IN ('dir "%src_folder%" /b') do move %src_folder%\%%a %tar_folder%
  for /f %%a IN ('dir "%src_folder1%" /b') do move %src_folder1%\%%a %tar_folder1%
  
  timeout 3
  
  goto loop
  </code></pre>
  
  <p>This code will move files without spaces, however i want anything in that folder to be moved to the next one.</p>
  
  <p>Any help on this topic is highly appreciated!</p>
  
  <p>Thanks,
  Dan.</p>