About IsConnectedToInternet command

General Macro Scheduler discussion

Moderators: JRL, Dorian (MJT support)

Post Reply
schwander
Junior Coder
Posts: 29
Joined: Tue Jun 14, 2011 6:32 am

About IsConnectedToInternet command

Post by schwander » Sun Jun 26, 2011 10:23 pm

Hi,
IsConnectedToInternet command not working properly. It returns True value but there is no any connection to the internet.
Best regards.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Mon Jun 27, 2011 7:44 am

Note that the help for this command says:

Returns True if the a connection to the internet appears to exist. False if not connected.

Note my emphasis.

Without actually attempting a connection to an external resource there is no 100% reliable way of knowing if a connection to the internet exists. This command attempts to do so using various Microsoft API which makes certain assumptions. The only 100% reliable way to know if a connection to the internet exists is to actually try and ping or connect to something out there on the 'net external to your network.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

schwander
Junior Coder
Posts: 29
Joined: Tue Jun 14, 2011 6:32 am

Post by schwander » Mon Jun 27, 2011 3:11 pm

Hi, Marcus
OK! It' clear now.
I was confused by the command's name.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts