1. @echooff
echo[%date% - %time%] Logstart>> C:AGS_BATCHBatch.log
if not exist"G:SAGEM_WQAR"gotoERROR1
if not exist"W:DOWNLOAD"gotoERROR2
dir /b"G:SAGEM_WQAR*" | >nul findstr"^" && (echo[%date% - %time%] Datainthe folderexist,readyforcopying>>
C:AGS_BATCHBatch.log) ||(GOTOERROR3)
REM XCOPYpart
xcopy/S/E/R/Y/I/CG:SAGEM_WQARW:DOWNLOAD
IF %ERRORLEVEL%NEQ 0 GOTO ERROR_HANDLER
REM DELETE All part
del /s/f/qG:SAGEM_WQAR*
for /D %%i in("G:SAGEM_WQAR*") doRD /S/Q "%%i"
echo[%date% - %time%] Copyingsucessful.>>C:AGS_BATCHBatch.log
GOTO QUIT
:ERROR1
echo[%date% - %time%] ERROR1-Source datadoesnnotexistornotavailable.>>C:AGS_BATCHBatch.log