@ECHO OFF
IF EXIST d:\hisbak\WEEK0.DMP D:\oracle\product\10.2.0\db_1\BIN\Exp.exe USERID=sys/XXXX@his buffer=4096 file=d:\hisbak\WeekBak0.dmp full=y
IF EXIST d:\hisbak\WEEK1.DMP D:\oracle\product\10.2.0\db_1\BIN\Exp.exe USERID=sys/XXXX@his buffer=4096 file=d:\hisbak\WeekBak1.dmp full=y
IF EXIST d:\hisbak\WEEK2.DMP D:\oracle\product\10.2.0\db_1\BIN\Exp.exe USERID=sys/XXXX@his buffer=4096 file=d:\hisbak\WeekBak2.dmp full=y
IF EXIST d:\hisbak\WEEK3.DMP D:\oracle\product\10.2.0\db_1\BIN\Exp.exe USERID=sys/XXXX@his buffer=4096 file=d:\hisbak\WeekBak3.dmp full=y
IF EXIST d:\hisbak\WEEK4.DMP D:\oracle\product\10.2.0\db_1\BIN\Exp.exe USERID=sys/XXXX@his buffer=4096 file=d:\hisbak\WeekBak4.dmp full=y
IF EXIST d:\hisbak\WEEK5.DMP D:\oracle\product\10.2.0\db_1\BIN\Exp.exe USERID=sys/XXXX@his buffer=4096 file=d:\hisbak\WeekBak5.dmp full=y
IF EXIST d:\hisbak\WEEK6.DMP D:\oracle\product\10.2.0\db_1\BIN\Exp.exe USERID=sys/XXXX@his buffer=4096 file=d:\hisbak\WeekBak6.dmp full=y
IF EXIST d:\hisbak\WEEK6.DMP REN d:\hisbak\WEEK6.DMP WEEK7.DMP
IF EXIST d:\hisbak\WEEK5.DMP REN d:\hisbak\WEEK5.DMP WEEK6.DMP
IF EXIST d:\hisbak\WEEK4.DMP REN d:\hisbak\WEEK4.DMP WEEK5.DMP
IF EXIST d:\hisbak\WEEK3.DMP REN d:\hisbak\WEEK3.DMP WEEK4.DMP
IF EXIST d:\hisbak\WEEK2.DMP REN d:\hisbak\WEEK2.DMP WEEK3.DMP
IF EXIST d:\hisbak\WEEK1.DMP REN d:\hisbak\WEEK1.DMP WEEK2.DMP
IF EXIST d:\hisbak\WEEK0.DMP REN d:\hisbak\WEEK0.DMP WEEK1.DMP
IF EXIST d:\hisbak\WEEK7.DMP REN d:\hisbak\WEEK7.DMP WEEK0.DMP
@ECHO ON