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

)

Comments

Popular posts from this blog

Flash ROM Samsung I7500 Galaxy for dummies

Certificate conversions etc...

Cool internet speed test