I am parsing a XML file like below:
@ECHO OFF
SETLOCAL
SET "name=name1"
SET "connection="
SET "type="
for /F "tokens=5,7delims==/ " %%a in (
'findstr /c:"
Finding the data line which contains the literal string "\" escapes "
) then set connection to the 5th (and type for good measure) from the seventh token of the data line
using =
, /
and [space]
as delimiters.