我想执行此命令,但它没有调度任务,但是这个命令在cmd中执行。
echo exec('schtasks /create /np /sc minute /mo 1 /tn "TestRail Background Task" /tr "\"start http://localhost/cronjob2/cronjob.php""
');
答案 0 :(得分:0)
我通过命令执行/ RU系统找到了解决方案
$ command =' schtasks / create / np / sc minute / mo 1 / tn" cronjob2" / tr" \" D:\ www \ webroot \ cronjob2 \ shellscript.vbs"" / RU系统&#39 ;; exec(" $ command 2>& 1",$ output); 的print_r($输出);