title: Check network connection with VBScript
body: <p>I'm running a web-based slideshow on multiple computer units. I have a VBScript that runs on startup, opens IE and navigates to a specific page in fullscreen mode. Everything works great, as long as there's an internet connection on startup. If there isn't then the page never loads. Is there a way in VBScript to check for a connection every couple minutes until the connection is found, and then continue with the script? Here is the code for your reference:</p>
  
  <pre><code>Option Explicit     
  Dim WshShell
  set WshShell = WScript.CreateObject("WScript.Shell")         
  
  On Error Resume Next
     With WScript.CreateObject ("InternetExplorer.Application")     
        .Navigate "http://www.example.com/slideshow"
        .fullscreen = 1   
        .Visible    = 1
        WScript.Sleep 10000
     End With    
  On Error Goto 0
  </code></pre>