WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: mjwillyone on September 16, 2021, 04:36:46 AM

Title: Testing for Internet Connection
Post by: mjwillyone on September 16, 2021, 04:36:46 AM
Hello All!

I was wondering the simplest way to test for an internet connection?  I have a Winbatch routine that sends emails, but I want to test first to see that the connection is working.

Thanks!
Mike
Title: Re: Testing for Internet Connection
Post by: td on September 16, 2021, 07:18:25 AM
Simple is a subjective term but one way is to attempt to do something in a script that requires an internet connection. For example, you could execute a ping command via any of the methods available to WinBatch scripts.
Title: Re: Testing for Internet Connection
Post by: stanl on September 16, 2021, 10:32:28 AM
Quote from: mjwillyone on September 16, 2021, 04:36:46 AM
Hello All!

I was wondering the simplest way to test for an internet connection?  I have a Winbatch routine that sends emails, but I want to test first to see that the connection is working.

Thanks!
Mike


Makes one think you have inherited scripts from a former user, probably written a while ago,,, and need assistance with mods....best you could place in some code so the fix would be less philosophical.....