cmd脚本win10使用schtasks命令实现定时任务
新建txt文本输入以下代码。本次事例是实现每天晚上22:40:00、22:41:00、22:42:00启动指定脚本
@echo off
schtasks /create /tn "test" /tr E:\software\phpstudy\phpstudy_pro\WWW\kaiju\test.bat /sc daily /st 22:40:00
schtasks /create /tn "test1" /tr E:\software\phpstudy\phpstudy_pro\WWW\kaiju\test.bat /sc daily /st 22:41:00
schtasks /create /tn "test2" /tr E:\software\phpstudy\phpstudy_pro\WWW\kaiju\test.bat /sc daily /st 22:42:00
pause
输入完毕后,另存为bat文件

然后双击该bat即可
可以在window执行计划中看到定时任务

本文介绍了如何在Windows 10系统中利用cmd和schtasks命令创建定时任务,以每天晚上22:40、22:41和22:42启动指定的bat脚本。通过编辑txt文件并另存为bat批处理文件,然后双击执行,即可在Windows任务计划程序中查看到设定的定时任务。
398

被折叠的 条评论
为什么被折叠?



