You are not logged in.
Gents,
Thanks to this website I am a lot more able with batch lines now.
I was just wondering if anyone could quickly tell me when to put my delimiters in the following line:
FOR /F "tokens=1 delims=" %m IN ('IF %%h LSS 127 (FINDSTR /i "%e.%f.%g.0" %windir%\temp\Superscopes.txt) ELSE (FINDSTR /i "%e.%f.%g.128" %windir%\temp\Superscopes.txt)') DO echo %m
Cheers
Steve
Offline
It is not clear what you are attempting to do.
Offline
You'd be better off with something like this (untested):
setlocal enabledelayedexpansion
IF %%h LSS 127 (set EXP="%%e.%%f.%%g.0") ELSE (set EXP="%%e.%%f.%%g.128")
FOR /F "tokens=1 delims=" %%m IN ('FINDSTR /i "!EXP!" "%windir%\temp\Superscopes.txt"') DO echo %%m
endlocal
Fixed some other bugs too.
cmd | *sh | ruby | chef
Offline