CODE: [Copy to clipboard]@echo off for /f "tokens=1* delims=:" %%i in ('findstr /n .* a.txt') do ( set a%%i=%%j call echo %%a%%i%% ) pause