Hi Again Everyone,
In batch code, is it possible to force a break out of runnng FOR loop ?
I've not been able to figure this out (If it is at all possible)
@echo off
set MonitorLoops=9
set MonitorInterval=2
for /l %%i in (1,1,%MonitorLoops%) do (
echo Loop %%i of %MonitorLoops% .
ping -n %MonitorInterval% 127.0.0.1 > nul
if %%i EQU 4 exit
)
Any ideas ??
Cheers,
Cameron