简易Windows 任务计划脚本文件编辑

1) 新建txt文件,改后缀名为.bat

2) 添加任务如下:

schtasks /create /sc daily /st 17:18:00 /tn "Kinect2" /tr C:\WorkSpace\Codes\KinectVideoRecorder\x64\Debug\VideoRecorder.exe
schtasks /create /sc daily /st 17:21:00 /tn "Kinect3" /tr C:\WorkSpace\Codes\KinectVideoRecorder\x64\Debug\VideoRecorder.exe
schtasks /create /sc daily /st 17:24:00 /tn "Kinect4" /tr C:\WorkSpace\Codes\KinectVideoRecorder\x64\Debug\VideoRecorder.exe
schtasks /create /sc daily /st 17:27:00 /tn "Kinect5" /tr C:\WorkSpace\Codes\KinectVideoRecorder\x64\Debug\VideoRecorder.exe
schtasks /create /sc daily /st 17:30:00 /tn "Kinect6" /tr C:\WorkSpace\Codes\KinectVideoRecorder\x64\Debug\VideoRecorder.exe
schtasks /create /sc daily /st 17:33:00 /tn "Kinect7" /tr C:\WorkSpace\Codes\KinectVideoRecorder\x64\Debug\VideoRecorder.exe
schtasks /create /sc daily /st 17:36:00 /tn "Kinect1" /tr C:\WorkSpace\Codes\KinectVideoRecorder\x64\Debug\VideoRecorder.exe

3) 双击.bat 文件,则添加任务。


/create 表示新建任务。

/sc 表示周期,daily, hourly等等

/st 表示开始时间

/tn  表示任务名字

/tr 表示执行路径

你可能感兴趣的:(简易Windows 任务计划脚本文件编辑)