@echo ******************************** @echo 資料庫備份 @echo ******************************** @echo off set h=%time:~0,2% if %h% leq 9 (set h=0%h:~1,1%) set dbbarkfile=%date:~0,4%%date:~5,2%%date:~8,2%%h%%time:~3,2%%time:~6,2% set dbbarkdir=e:\application\dbbarkup\%dbbarkfile% mkdir %dbbarkdir% @echo ******************************** @echo mt備份 @echo ******************************** exp mt/mt@orcl file=%dbbarkdir%\mt%dbbarkfile%.dmp