Forum Moderators: open
I want to run scheduled tasks on a windows machine on hourly basis. This task should run some scripts in firefox or IE.
this guy loads the script:
"C:\Program Files\Mozilla Firefox\firefox.exe" http://localhost/cron.php
and works fine..
But, can you guys tell me what's the command-line to shut down the firefox or IE browser browser from the command line?
Thanks.
[edited by: encyclo at 1:26 pm (utc) on Mar. 8, 2006]
[edit reason] delinked [/edit]
You can set a script to open a window, wait a while and then close it, or close it after a certain response. This one starts ie, waits 5 seconds and then closes the window even if something else took focus in between.
#Persistent
winset,alwaysontop,on
run, iexplore.exe htp: // localhost/cron.php
sleep,5000
WinActivate,My Cron Results Page #match the page Title here
WinClose,My Cron Results Page #match the page Title here