打开计划任务
![img_b45504e3d4b57a2efcc29ebb7be1611a.png](https://yqfile.alicdn.com/img_b45504e3d4b57a2efcc29ebb7be1611a.png?x-oss-process=image/resize,w_1400/format,webp)
image.png
创建任务
![img_60e9d7de13ba267053f5590f77bde3b5.png](https://yqfile.alicdn.com/img_60e9d7de13ba267053f5590f77bde3b5.png?x-oss-process=image/resize,w_1400/format,webp)
image.png
设置常规
![img_6607e7f5f40674d633c48dce7d497b5b.png](https://yqfile.alicdn.com/img_6607e7f5f40674d633c48dce7d497b5b.png?x-oss-process=image/resize,w_1400/format,webp)
image.png
设置触发器
![img_af135b14c1f03d27281c5f43e045ade8.png](https://yqfile.alicdn.com/img_af135b14c1f03d27281c5f43e045ade8.png?x-oss-process=image/resize,w_1400/format,webp)
image.png
设置操作
![img_46a393cc2db43064e5dc85750a21f1ae.png](https://yqfile.alicdn.com/img_46a393cc2db43064e5dc85750a21f1ae.png?x-oss-process=image/resize,w_1400/format,webp)
image.png
执行文件corn.bat内容如下:
cd /d E:/wwwroot/floribook
E:/BtSoft/WebSoft/php/7.1/php.exe artisan schedule:run 1>> NUL 2>&1
如果设置不成功需要留意以下几个点:
- 第一句中/d不能去掉,盘符后面要有冒号和斜杠
- PHP命令使用绝对路径,盘符后面要有冒号和斜杠
- 其他部分原样复制即可,不要修改