我如何创建一个批处理文件计时器来执行/调用全天另一批 [英] How do I create a batch file timer to execute / call another batch throughout the day

查看:179
本文介绍了我如何创建一个批处理文件计时器来执行/调用全天另一批的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何创建一个批处理文件计时器来执行/呼叫另一​​批通过了一天也许在给定的时间运行,但不会在周末运行?必须在系统运行时间也可以.CMD向XP Server 2003上运行

How do I create a batch file timer to execute / call another batch through out the day Maybe on given times to run but not to run on weekends ? Must run on system times can also be .cmd to run on xp server 2003

推荐答案

有关脚本的计时器部分我使用高度reccomend:

For the timer part of your script i highly reccomend using:

echo.
echo Waiting For One Hour... 
TIMEOUT /T 3600 /NOBREAK
echo.
echo (Put some Other Processes Here)
echo.
pause >nul

本脚本等待1小时(3600秒),然后用脚本将继续上,用户无法preSS任何按钮绕过定时器(除了CTRL + C)。

This script waits for 1 hour (3600 seconds) and then continues on with the script and the user cannot press any buttons to bypass the timer (besides CTRL+C).

您可以使用

Timeout /t 3600 /nobreak >nul

如果你不希望看到屏幕上的倒计时。

If you don't want to see a countdown on the screen.

这篇关于我如何创建一个批处理文件计时器来执行/调用全天另一批的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆