windows - concatenating string in FOR loop in batch file - Super User
IMO this doesn't necessarily have to be as complicated as the other answer makes it out to be. If those are the only lines in the text file then you can use the following: @echo off set var= setlocal enabledelayedexpansion for /f "tokens=2 delims=:" %%a i...