I
IT Staff
For /F %%i In (%filename%) Do Call ing4Name %%i
ing4Name
For /F "Tokens=2" %%a In ('ping -n 1 %1 ^| find /i "Reply"') Do whatever
i want a "if" statement after the do loop. My aim is to find,
a) during the for loop, if able to find /i reply, do whatever
b) during the for loop, if UNABLE to find /i reply, how can i echo "reply
not found"?
ing4Name
For /F "Tokens=2" %%a In ('ping -n 1 %1 ^| find /i "Reply"') Do whatever
i want a "if" statement after the do loop. My aim is to find,
a) during the for loop, if able to find /i reply, do whatever
b) during the for loop, if UNABLE to find /i reply, how can i echo "reply
not found"?