@echo off
goto begin
REM **************************************************************************
REM
REM Make sure %DESIRE% contains the directory to desire WITHOUT an ending  '\'
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: HDOWN.BAT <Node> <Comport> <Comspeed> <Receivepath>
REM
REM **************************************************************************
:begin

del %DESIRE%\data\dszlog.%1 >NUL

REM **************************************************************************
REM Deletes the old DSZLOG.x created by the last HYDRA-session
REM **************************************************************************

set DSZLOG=%DESIRE%\data\dszlog.%1
hydracom port %2 speed %3 result %DESIRE%\data\dszlog.%1 recieve %4 send @%DESIRE%\data\dlfiles.%1

REM **************************************************************************
REM Call Hydracom with the desire speed/port, receivepath (for uploads)
REM and the path to the list with the files which should be downloaded.
REM **************************************************************************

dsztodes %DESIRE%\data\dszlog.%1 %DESIRE%\data\transfer.%1 >NUL
REM **************************************************************************
REM Now call DSZTODES to convert the DSZLOG.x to the dESiRE compatible
REM TRANSFER.x and put it in the right directory..
REM **************************************************************************
 
