views:

10

answers:

1

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  A: 

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

mosg
Perfect! Thank you very much!
Probocop

related questions