::========= Multi File Duplicator - MFDD.CMD ============
::=======================================================
:: This Procedure is aimed to assist in copying multiple files
:: from Source folder to Target folder, by using BOS ChiefDD
:: utility.
::
:: Please edit the Program Dir, Source Dir and Target Dir
:: according to your needs before executing this Batch.
::
:: Copy all the content of this page and paste it into a newly
:: created .BAT or .CMD file for execution.
::
:: The execution of this Procedure is possible both manually
:: or with system Schedule service.
::
:: This Procedure is provided "as is", without warranty of any kind!
:: Use it on your own risk!
::
:: Copyright (C) Chief Applications Israel Ltd 1986-2007
::
::=======================================================
@Echo off
:: Setting Program Dir
Set b=C:\Program Files\BOS - Backup prOxy Server\
:: Setting Source Dir (Please change!)
Set s=C:\SourceDir\
:: Setting Target Dir (Please change!)
Set t=\\TargetSystem\C$\Backups\
 
For %%f IN (%s%*.*) DO @Call :run "%%~nxf" %%~zf
Goto :EOF
 
:run
Set f=%~1
Echo .
Echo Duplicating - %f%
"%b%ChiefDD.exe" /Src:"%s%%f%" /FrSrc:"%s%%f%" /Trg:"%t%%f%" /FrTrg:"%t%%f%" /Size:%2 /CRC:"%t%%f%.crc" /Close /Ignore
IF %ERRORLEVEL% GEQ 200 goto El%ERRORLEVEL%
Goto :EOF
 
:EL200
Echo Invalid parameter usage.
Goto :EOF
:El201
Echo Error occurred during clone process.
Goto :EOF
:El202
Echo Process aborted by user.
Goto :EOF
:El203
Echo Unknown error occurred.
Goto :EOF
:El204
Echo Process finished successfully (With warnings).
Goto :EOF
:El205
Echo Process finished Successfully (No warnings).
 
:EOF