%e3%83%97%e3%83%ad%e3%83%9f%e3%82%b9%e3%83%bb%e3%82%a2%e3%82%b3%e3%83%a0%e3%81%aa%e3%81%a9%e3%81%ae%e8%87%aa%e5%8b%95%e5%a5%91%e7%b4%84%e6%a9%9f%e3%81%a7%e3%81%ae%e5%80%9f%e3%82%8a

For /f "delims=:, tokens=1-4" a in " var " do echo 1st token " a" - 2nd token " b" - 3rd token " c" - 4th token " d" echo. echo 4 use default delimiter and show only the 2nd part of the string :: note: we start with the 2nd token - thats why the 2nd token is in a not in b for /f "tokens=2" a in " var " .Echoes A ^ B. When after a pipe, a caret used for escaping needs to be tripled to work; the fourth caret is the one being escaped. if ^ echo temp . Outputs literally temp when run from a batch. echo //comment line | findstr \//. Command FINDSTR uses backslash \ for escaping. Unlike caret, this is internal .FOR Parameters. The first parameter has to be defined using a single character, for example the letter G. FOR G IN In each iteration of a FOR loop, the IN clause is evaluated and G set to a different value. If this clause results in a single value then G is set equal to that value and the command is performed..C b b c F a V Q I F P Y R c X G V b G H V y c F a T c a V P P I P G c F G x Y c S V U V F G a . . " . . " s H V b V U T F V b c G I R F ` I Y Y t V x c I Q R T G Q I b V S G Y u G R G H V. x z w x z | { o w x v | z { " { y w { s H V..

No related post!