Windows server Task Scheduler, close after?
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 ;)
精彩评论