All Things WinBatch > WinBatch

Testing for Internet Connection

(1/1)

mjwillyone:
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

td:
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.

stanl:

--- 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

--- End quote ---


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.....

Navigation

[0] Message Index

Go to full version