Exp 导出的命令写成的bat文件

rem 设定开始时间
set "ks=%date:~,4%/%date:~5,2%/%date:~8,2% %time:~0,2%:%time:~3,2%:%time:~6,2%"
rem 开始导出数据
exp scott/tiger@orcl  file=E:\scott.dmp -log e:\scott_log.txt
rem 设定结束时间
set "js=%date:~,4%/%date:~5,2%/%date:~8,2% %time:~0,2%:%time:~3,2%:%time:~6,2%"
rem 把导出的开始和结束时间输出到日志文件中

echo Begin Time: >>e:\scott_log.txt
echo %ks%>>e:\scott_log.txt
echo End Time: >>e:\scott_log.txt
echo %js%>>e:\scott_log.txt

你可能感兴趣的:(Exp 导出的命令写成的bat文件)