|I've got a batch script that runs through a file, but every time it hits a line with a less-than sign, it bombs. Here's the script:|
REM Gets line from earlier
REM Remove quotes from the line
REM Tests the line. This is in a loop.
IF "%Line:~0,6%"=="[HKEY_" FOR /F "tokens=5 delims=\]" %%A IN ('ECHO.%Line%') DO ECHO %Line%
It can parse through a file that contains stuff from a registry file, but when it runs across a line with a less-than sign, it complains, saying "less-than was unexpected at this time."
How can I get around that? How can I strip out the less-than signs like I can strip out the quotes?