当前位置:网站首页>winddows 计划任务执行bat 执行PHP文件 失败的解决办法
winddows 计划任务执行bat 执行PHP文件 失败的解决办法
2022-07-25 11:02:00 【hexiaoniao】
网上教程铺天盖地清一色都是一样!!!但是我按照教程执行不了!!!竟然没有一个人提到这个解决问题。无语了。。。。
首先在目录下。随你哪个目录。最好是项目根目录创建test.text文件,这个是写入文件。测试你任务执行是否成功,还有testPHP.bat文件。定时任务通过他来执行PHP文件。

还有新建demp.php文件哦。执行文件。数据写入test.text。

testPHP.bat文件代码

前面是你PHP.exe路径。后面是PHP文件路径。记得不要写错
接下来开始设置windows计划任务了!! 注意:起始于参数路径要填!!服务器要开启!!1




成功:

边栏推荐
- Maskgae: masked graph modeling meets graph autoencoders
- Teach you how to configure S2E to UDP working mode through MCU
- 第4章线性方程组
- [MySQL learning 09]
- 【MySQL 17】安装异常:Could not open file ‘/var/log/mysql/mysqld.log‘ for error logging: Permission denied
- JS中的数组
- 【mysql学习09】
- MySQL historical data supplement new data
- JVM performance tuning methods
- 相似矩阵,可对角化条件
猜你喜欢
随机推荐
相似矩阵,可对角化条件
【IMX6ULL笔记】--内核底层驱动初步探究
Database integrity -- six constraints learning
已解决 Files‘ name is invalid or does not exist (1205)
Solved files' name is invalid or doors not exist (1205)
W5500上传温湿度到oneNET平台
Review in the middle of 2022 | understand the latest progress of pre training model
硬件外设=maixpy3
Summary of combination problems of Li Kou brush questions (backtracking)
[USB device design] - composite device, dual hid high-speed (64BYTE and 1024byte)
session和cookie有什么区别??小白来告诉你
Varest blueprint settings JSON
Differences in usage between tostring() and new string()
Introduction to shortcut keys in debug chapter
What is the global event bus?
pycharm连接远程服务器ssh -u 报错:No such file or directory
WIZnet嵌入式以太网技术培训公开课(免费!!!)
Layout management ==pyqt5
贪心问题01_活动安排问题
Hacker introductory tutorial (very detailed) from zero basic introduction to proficiency, it is enough to read this one.


![[MySQL learning 09]](/img/27/2578f320789ed32552d6f69f14a151.png)






