Results 1 to 2 of 2
  1. #1
    4 Star Lounger
    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?

  2. #2
    Super Moderator BATcher's Avatar
    Join Date
    Feb 2008
    A cultural area in SW England
    Thanked 187 Times in 171 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...!

    Time prevents everything happening all at once...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts