@ECHO OFF
goto begin
REM *************************************************************************
REM 
REM ZM (DSZ Compatible ZModem) by Peter Mandrella
REM 
REM
REM Warning!: If you are running a network and your DATA dir is on another
REM drive, edit all lines with %DESIRE%\DATA into the correct paths!
REM
REM Usage ZM:
REM 
REM -f Use Fossil, if you use UART communication remove this option!
REM 
REM *************************************************************************
:begin
SET DSZLOG=%DESIRE%\DATA\DSZLOG.%1
DEL %DESIRE%\DATA\DSZLOG.%1 >NUL
DEL %DESIRE%\DATA\TRANSFER.%1 >NUL
ZM   -f -\ -c%2 -b%3  rz %4
REM ^^^- for fossil
REM ZM  -\ -c%2 -b%3  rz %4
REM ^^^- for uart 
DSZTODES %DESIRE%\DATA\DSZLOG.%1 %DESIRE%\DATA\TRANSFER.%1 -d >NUL

 