@set TODAYS_DATE=%date:~0,4%%date:~5,2%%date:~8,2%
@echo wscript.echo dateadd("d",-7,date) >%tmp%\tmp.vbs
@for /f "tokens=1,2,3* delims=-" %%i in ('cscript /nologo %tmp%\tmp.vbs') do @set y=%%i
@for /f "tokens=1,2,3* delims=-" %%i in ('cscript /nologo %tmp%\tmp.vbs') do @set m=%%j
@for /f "tokens=1,2,3* delims=-" %%i in ('cscript /nologo %tmp%\tmp.vbs') do @set d=%%k
@if %m% LSS 10 set m=%m%
@if %d% LSS 10 set d=%d%
@set /a LAST_WEEK=%y%%m%%d%
for /f "tokens=1-3 delims=--" %%i in (D:\oracle\1.txt) do (
SET TARGET_PATH=D:\backcup\%%k
SET USERNAME=%%i
SET PASSWORD=%%j
SET SID=%%k
set TODAYS_DATE_TIME="%TODAYS_DATE%_%time:~0,2%%time:~3,2%%time:~6,2%"
echo set TODAYS_DATE_TIME=%TO
@echo wscript.echo dateadd("d",-7,date) >%tmp%\tmp.vbs
@for /f "tokens=1,2,3* delims=-" %%i in ('cscript /nologo %tmp%\tmp.vbs') do @set y=%%i
@for /f "tokens=1,2,3* delims=-" %%i in ('cscript /nologo %tmp%\tmp.vbs') do @set m=%%j
@for /f "tokens=1,2,3* delims=-" %%i in ('cscript /nologo %tmp%\tmp.vbs') do @set d=%%k
@if %m% LSS 10 set m=%m%
@if %d% LSS 10 set d=%d%
@set /a LAST_WEEK=%y%%m%%d%
for /f "tokens=1-3 delims=--" %%i in (D:\oracle\1.txt) do (
SET TARGET_PATH=D:\backcup\%%k
SET USERNAME=%%i
SET PASSWORD=%%j
SET SID=%%k
set TODAYS_DATE_TIME="%TODAYS_DATE%_%time:~0,2%%time:~3,2%%time:~6,2%"
echo set TODAYS_DATE_TIME=%TO