CODE: [Copy to clipboard](for /f "tokens=1* delims=\" %a in ('findstr /n "1" D:\*.txt') do echo,%b)>1.txt