Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm looking for a mechanism to open a single URL in the user's current default browser on a schedule/recurring basis.

I know that if I was writing .Net code to do this, I could simply do something along the lines of Process.Start("http://example.com/somePage.html") which will cause the default browser to open to that address. Likewise, I can go to Start -> Run and type in a given address and that too will cause the default browser to open to that address. Using this knowledge, I thought I would create a Windows Scheduled Task where the "Start a program" field was set to the URL I wanted to start. Unfortunately, this doesn't work. When the task runs, the URL is not opened (nor are any browsers).

Can anyone point me in the right direction to make this happen? Ideally, I would like to stay away from 3rd-party utilities, leveraging Windows 7's Task Scheduler would be great. Also, just to be clear, I'm not looking for a browser plugin to accomplish this.

Also, I'm not looking for anything fancy wrt waking a sleeping computer to carry this task out. I'm fine with just letting this happen only when a user is logged in.

share|improve this question

2 Answers

up vote 7 down vote accepted

I would create a batch file containing:

start http://example.com/somePage.html

And point Task Scheduler to that batch file. You can also test that it will work by running the batch file manually.

share|improve this answer
2  
It may also work if you use that string as the command for your task, but I prefer to edit a batch file than have to look through my tasks if I need something changed. – Windos Aug 10 '11 at 4:38
Thanks @Windos, worked a treat. I found that it didn't work when that string was the command itself for my task. Could be that I was doing it wrong (missing "" around URL or something), but I didn't spent any extra time on it as the batch file solution gave me what I needed. – ckittel Aug 10 '11 at 13:51

You could make the windows task manager run a program, and have it point to an html file that contains a redirection to the website you want it to open.

Step 1. Open notepad
Step 2. Write javascript redirect
Step 3. Save as .html
Step 4. Set task manager to open that html file on your desired schedule

here is the javascript - let me know if it works

<script type="text/javascript">
<!--
window.location = "http://www.google.com/"
//-->
</script>
share|improve this answer
I have tested it, it works. – Alex Waters Aug 10 '11 at 4:50
1  
+1. Thanks for this solution, I've tested it too, and it indeed works. @Windos solution is ideal for my needs, but I'm glad you posted this solution as it might be ideal for someone else. – ckittel Aug 10 '11 at 13:52

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.