Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
创建一个在while(1)循环中执行php脚本的bat文件_Php_Batch File_Windows 10 - Fatal编程技术网

创建一个在while(1)循环中执行php脚本的bat文件

创建一个在while(1)循环中执行php脚本的bat文件,php,batch-file,windows-10,Php,Batch File,Windows 10,我想用while1循环创建一个bat文件,并用windows任务计划执行它。应该是这样的: While (1) D:\wamp64\bin\php\php5.6.25\php.exe -f D:\wamp64\www\nmedica\index.php external python 有什么想法吗?用cmd解决了这个问题 @回音 :开始 D:\wamp64\bin\php\php5.6.25\php.exe-f D:\wamp64\www\nmedica\index.php外部python

我想用while1循环创建一个bat文件,并用windows任务计划执行它。应该是这样的:

While (1)

D:\wamp64\bin\php\php5.6.25\php.exe -f D:\wamp64\www\nmedica\index.php external python 

有什么想法吗?

用cmd解决了这个问题

@回音

:开始

D:\wamp64\bin\php\php5.6.25\php.exe-f D:\wamp64\www\nmedica\index.php外部python


转到开始

您试过了吗?它有用吗?你有错误吗?你的问题是什么?顺便说一句,我会让它成为一个无限循环吗?@MagnusEriksson-它会。。。如果批处理中有while loops.for/L%%i,则执行D:\wamp64\…@一些黑暗的操作。已经20多年没有做过bat档案了。:-然后我的想法是,OP应该在谷歌上搜索一个教程。