Windows Batch ERRORLEVEL of ping is not working while in loop
Could anybody help to figure out what the problem is in the following batch code?
I want to check if the device with ip 192.168.0.1 is ready to connect.
I power off the device and power on it after executed the batch.
It seems the %errorlevel% is not working if first check is not 0