ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

Configurable batch code to launch a web after check internet connection

(1/1)

Contro:
Configurable batch code to launch a web after check internet connection

My idea is schedule this bat file able to launche a website or any similar task after checking the internet conection.
If not active internet connection keep trying until success.

Best Regards
 :-*

4wd:

--- Code: Text ---rem Check Internet connection, if not found loops every 30 secondsrem Adapted from:rem http://stackoverflow.com/questions/6357515/batch-files-using-ping-to-test-network-connectivity@echo offset site=www.google.com:loopping www.google.com -n 1 -w 5000 > nulif errorlevel 1 (  ping -n 30 127.0.0.1 > nul  goto loop  )elseif (  start http://%site%  )
FYI

Contro:
Wonderful
Thanks a lot

Best Regards

Navigation

[0] Message Index

Go to full version