Posts

Showing posts from November, 2013

Batch copy files from list and preserve folder structure

@echo off set src_folder=F:\AVA3 set dst_folder=F:\AVA3_UNIQ set file_list=F:\recordings.txt for /f "delims=" %%a in (%file_list%) do (  echo "%%~pa"  echo "%src_folder%%%a"  echo "%src_folder%\%%a"  if not exist "%dst_folder%\""%%~pa" mkdir "%dst_folder%\""%%~pa"     xcopy "%src_folder%\%%a" "%dst_folder%\""%%~pa" /E )