bat脚本命令循环运行程序 ,然后指定时间退出。

@echo off
title EcCheck // 显示标题

:loop
if "%time%" GTR "23:00.00" (exit) else goto t //如果系统时间是23点退出程序。如果不是则继续进行t标签的程序
:t
cd C:ECsystempublish
C:ECsystempublishwfmain.exe exeitem -user=0036 -jobcd=SP_VERSION_CHECK -itemid=7060 -itemid=7064  -bfdays=1 -dldays=1

goto loop

原文地址:https://www.cnblogs.com/c-x-a/p/5984114.html