0
for /f "tokens=*" %%i in (%file_list%) DO (move "%src_folder%\%%i" "%dst_folder%")

This resulted in copy instead of move.

I need to remove the files from the source folder.

7
  • /Y Suppresses prompting to confirm you want to overwrite an existing destination file. Commented Jul 1 at 14:03
  • FOR %%A IN ("%SourceDir%\*.*") DO XCOPY /F /Y "%%~A" "%DestDir%\" && DEL /Q /F "%%~A" Commented Jul 1 at 14:04
  • Thank you very much. Still wondering why MOVE copied, though. Commented Jul 1 at 14:18
  • This was on the same drive. I need to separate out 8000+ files from a folder of about 32000. I really don't want to do it by hand. Commented Jul 1 at 16:35
  • I adapted your syntax for delete to my script and it moved successfully but reports "couldn't find %%~A. What does the %%~A do? Commented Jul 1 at 16:48

0

You must log in to answer this question.

Browse other questions tagged .