Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm trying to get a scheduled web script running on a Windows Server and so far the only way I've managed to automate this process is by using the Task Scheduler to open Internet Explorer with the web address as a parameter. I then need to create a separate task to run just after this task to close Internet Explorer (otherwise the task doesn't complete).

Is there a better way of doing this?

I've also managed to run the script by calling the web address through a Telnet connection to the web server (GET /web/address/here) but I haven't found a way of automating this process on a scheduled basis.

Any ideas appreciated

share|improve this question

3 Answers 3

up vote 0 down vote accepted

Your post as I see is essentially a duplicate of this one:

http://stackoverflow.com/questions/3947142/open-url-from-script-on-windows-server-2008

There he got quite a few answers right up your alley (most notably some PowerShell scripts).

share|improve this answer
    
The vbscript + Task Scheduler seems to work well. Must have missed this one :) Many thanks for your help –  Dan Murfitt Apr 5 '12 at 13:05

I've recently moved all stuff like this to a powershell script that calls a URL or does stuff with the .NET framework, then schedule with Task Scheduler

share|improve this answer

THere are version of wget & curl for Windows (look for GnuWin32). As commandline tools these could take many actions for you and exit.

share|improve this answer
    
Are there any ways of doing this using the standard Windows Server tools (like Telnet, Powershell, etc.)? Many thanks –  Dan Murfitt Apr 5 '12 at 11:33
    
Not that I'm aware of. –  uSlackr Apr 5 '12 at 12:04

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.