Welcome to WebmasterWorld Guest from 184.108.40.206
Forum Moderators: ocean10000
We installed a new newsletter script on one of our websites and we need something to browse to a certain URL every 1-2 hours. Basically, once a browser loads the specific URL the script will start on the server and check if it needs to send out any emails.
I can create a task in windows that opens an instance of IE which automatically loads the page we need... but I believe this will only open IE and we would need to manually log into the server and physically close all instances of IE (right?).
Is there a simple way on our server to load a certain website page every couple of hours?
If not, does anyone have any recommended 3rd part hosted solutions that will automatically do what we need every few hours?
I'm actually not using a script file. I just created a shortcut to IE and added the URL to the shortcut.
I'm assuming you're referring to creating a JS file of some sort which when called will open IE, open the website, and then close IE. Right?
If so... how would I go about creating this file? Any links to some good resources?
This will probably work for you, which you could then use task scheduler to fire it off.
Simply create a text file called myscript.vbs (vbscript) and edit in notepad.
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "iexplore http://www.example.com", 9
WScript.Sleep 10000 ' Give ie some time to load
'Close the browser
You might also be able to use some jscript on the web page to close the window after a certain amount of time.
Is your site and database on a hosted server? If you have control over it, I would probably make a windows service or scheduled SQL job to do the same thing that your web page is doing.
[edited by: TheNige at 2:22 am (utc) on Mar. 15, 2007]
I don't know enough to do a lot of the things you guys suggested.
However... I've purchased another mailinglist software script and the developer had an addon that did I think what the person above stated. It runs as a service on the server and logs into the database based on settings I have set in an XML file. It checks at a set interval to see if any mailings need to be set... works perfect!
Thank you again for everyone that tried to help me out. :)