Windows server Task Scheduler, close after?

半腔热情 提交于 2019-12-13 17:26:38

问题


I have a scheduled task on my server which runs a PHP script every minute. In the 'Run' part of the scheduled task I have the following:

"C:\Program Files\Internet Explorer\iexplore.exe" "http://www.example.co.uk/script.php"

So when it runs it opens Internet Explorer and browses to that URL.

Is it possible to get it to close Internet Explorer after running the script?


回答1:


You may install PHP on you windows server, put php.exe in to the global PATH variable, and just start your php-script file from "Task Manager" with:

C:\PHP\bin\php.exe "http://www.example.co.uk/script.php"

I think there will no windows in this case ;)



来源:https://stackoverflow.com/questions/2833451/windows-server-task-scheduler-close-after

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!