@echo weg
vastgestelde FromDrive=D:
vastgestelde UserName=User
vastgestelde CopyFolders= " muziek ", „documenten“, „beelden“, „favorieten“
vastgestelde CopyFiles=*.ppt, *.xls, *.pst, *.doc, *.pptx, *.xlsx, *.docx, *.jpg, *.gif, *.png, *.fpt, *.mp3, *.mpg, *.mpeg, *.mov, *.mp4, *.pdf
voor %%A binnen (%CopyFolders%) (
robocopy „%FromDrive% \ Gebruikers \ %UserName% \ %%~A“ „C:\Backup1\“ /S
)
robocopy „%FromDrive% \“ „C:\Backup2\“ %CopyFiles% /S
|