如何让BAT循环执行一个任务?
就比如说:taskkill/f/imexplorer.exe/tstartexplorer.exe循环执行...
就比如说:taskkill /f /im explorer.exe /tstart explorer.exe 循环执行
展开
2个回答
展开全部
backup.bat
set oracle_username="test"
set oracle_password="abc12!^"
set local_tnsname="225_orcl"
set winrar_path="C:\Program Files\WinRAR\"
set path=%path%;%winrar_path%
for /f "tokens=1-4 delims=/ " %%i in ('date /t') do set day=%%j
set url=%oracle_username%/%oracle_password%
if not %local_tnsname% == "" set url=%url%@%local_tnsname%
exp %url% file=%oracle_username%_%day%.dmp log=%oracle_username%_%day%.log
if %errorlevel% == 0 rar a -m5 -df %oracle_username%_%day% %oracle_username%_%day%.dmp
set oracle_username="test"
set oracle_password="abc12!^"
set local_tnsname="225_orcl"
set winrar_path="C:\Program Files\WinRAR\"
set path=%path%;%winrar_path%
for /f "tokens=1-4 delims=/ " %%i in ('date /t') do set day=%%j
set url=%oracle_username%/%oracle_password%
if not %local_tnsname% == "" set url=%url%@%local_tnsname%
exp %url% file=%oracle_username%_%day%.dmp log=%oracle_username%_%day%.log
if %errorlevel% == 0 rar a -m5 -df %oracle_username%_%day% %oracle_username%_%day%.dmp
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询