echo off
color 0a
cd..
cls
:exp
set user=root
set pswd=root123
set sid=orcl
set year=%date:~0,4%
set month=%date:~5,2%
set day=%date:~8,2%
set h=%time:~0,2%
set m=%time:~3,2%
set s=%time:~6,2%
if %h% lss 10 set file=db-%year%-%month%-%day%-0%time:~1,1%-%m%-%s%.dmp
if %h% geq 10 set file=db-%year%-%month%-%day%-%h%-%m%-%s%.dmp
exp %user%/%pswd%@%sid% file=E:\Backup\%file%