Batch Script to constantly ping, when fails use logic to disable and enable network adapters -


i looking batch script can ping server. when ping fails there logic stop ping, disable , enable network adapters.

something :

@echo off&cls  :loop echo connection test... ping www.google.com >nul || (   echo reseting connection...   netsh interface set interface "name of connection" disable   netsh interface set interface "name of connection" enable ) ::change value (300) in/decrease time value between 2 tests ping localhost -n 300 >nul goto:loop 

Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -