As per my corrected answer to another question it seems that Windows XP doesn't strip <cr>
's from for /f
output.
How can I test for the existance of <cr>
's in the output?
What I currently have is:
for /f "tokens=1,2,3* %%a in ('ping -n 1 example.com') do (
if not "x%%a"=="¶" ( echo %%a ) else ( echo.>null )
)
but no matter what I do:
2) delims= ¶
3) if not "x%%a"==""
4) if not "x%%a"==" "
5) if not "x%%a"==" "
... I cannot seem to get the if to match the in the var with any combination of the above.