@echo off
Forfiles /p E:\orclsjbf /s /d -7 /m *.rar /c "cmd /c del /q /f @path"
call cd e:\orclsjbf
call set dmp_name=ORCL_USER%date:~0,4%%date:~5,2%%date:~8,2%.dmp
call set log_name=ORCL_USER%date:~0,4%%date:~5,2%%date:~8,2%.log
call expdp ORCL_USER/ORCL_USER@127.0.0.1:1521/orcl directory=data_dir dumpfile=%dmp_name% logfile=%log_name% version=11.2.0.1.0
call "E:\software\winrar\WinRAR.exe" a -m5 -t DCI%date:~0,4%%date:~5,2%%date:~8,2%.rar %dmp_name% %log_name%
call del %dmp_name%
call del %log_name%
@echo off
|