Results 1 to 2 of 2
2008-09-23, 02:30 #1
- Join Date
- Jul 2006
- Thanked 0 Times in 0 Posts
Run Scheduled task when connect to internet
Is is possible to create a scheduled task which will only run when you are connected to the internet?
2008-09-23, 03:03 #2
- Join Date
- Feb 2008
- A cultural area in SW England
- Thanked 197 Times in 177 Posts
Re: Run Scheduled task when connect to internet
The glib answer is yes, because the scheduled task would run at the time(s) you have set it up to run, regardless of whether or not you are connected to the internet!
You could write a BATch file which tried to access a website using something like (the Windows port of) WGET, to retrieve any file you fancy (preferably v. small) from any website you fancy.
If the download fails, assume no internet connection, and give up.
If the download succeeds, then there must have been an internet connection at the time (and may well still be now). Then do whatever you want while connected to the internet.
More information would engender more precision...!BATcher
"The trouble with quotes on the internet is that you can never know if they are genuine."