比思論壇

標題: at 计划任务(必须保证“Task Scheduler”服务启动 net start "task scheduler") [打印本頁]

作者: hncszz    時間: 2021-9-10 23:50
標題: at 计划任务(必须保证“Task Scheduler”服务启动 net start "task scheduler")

at  计划任务(必须保证“Task Scheduler”服务启动   net start "task scheduler")

例:at  // 查看所有的计划任务

例:at /delete /yes  // 停止所有任务计划(不需要确认)

例:at 1  // 开启id为1的计划任务

例:at 1 /delete /yes  // 停止id为1的计划任务(不需要确认)

例:at 12:42 shutdown –s –t30   // 到12:42 ,电脑会出现“ 系统关机 ”对话框,并默认 30 秒延时自动关机

例:at cmd /c dir > c:\test.out   // 如果命令不是exe文件,必须在命令前加上cmd /c

例:at 6:00AM /every:Saturday task.bat   // 在每周六早上6点,电脑定时启动task.bat批处理文件

例:at \\chen 12:00 shutdown /r   // 到12:00时,关闭名为chen的计算机

例:at \\192.168.1.166 12:00 shutdown /r   // 到12:00时,关闭ip为192.168.1.166的计算机




歡迎光臨 比思論壇 (http://bisi666.cc/) Powered by Discuz! X2.5