【问题标题】:create a bat file that executes a php script in while (1) loop在 while (1) 循环中创建一个执行 php 脚本的 bat 文件
【发布时间】:2017-09-26 08:48:51
【问题描述】:

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

While (1)

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

有什么想法吗?

【问题讨论】:

  • 你试过了吗?它有效吗?你有错误吗?你的问题是什么?顺便说一句,While (1) 不会让它成为一个无限循环吗?
  • @MagnusEriksson - 如果批处理有 while 循环,它会...
  • for /L %%i in () do D:\wamp64\...
  • @SomethingDark 啊。 20 多年没有制作 bat 文件了。 :-) 那么我的“想法”是 OP 应该在谷歌上搜索教程。

标签: php batch-file windows-10


【解决方案1】:

用cmd这样解决

@echo 关闭

:开始

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

开始

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-12-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多