@echo off
set FromDrive=D:
set UserName=User
set CopyFolders="music","documents","pictures","favorites"
set CopyFiles=*.ppt,*.xls,*.pst,*.doc,*.pptx,*.xlsx,*.docx,*.jpg,*.gif,*.png,*.fpt,*.mp3,*.mpg,*.mpeg,*.mov,*.mp4,*.pdf
for %%A in (%CopyFolders%) do (
robocopy "%FromDrive%\Users\%UserName%\%%~A" "C:\Backup1\" /S
)
robocopy "%FromDrive%\" "C:\Backup2\" %CopyFiles% /S
|