开发者

Windows server Task Scheduler, close after?

开发者 https://www.devze.com 2022-12-30 20:28 出处:网络
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:

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?


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 ;)

0

精彩评论

暂无评论...
验证码 换一张
取 消