@echo off&setlocal enabledelayedexpansionfor /r %%a in (*.txt) do ( set n=0 for /f "usebackq delims=" %%b in ("%%a") do ( if !n!==1 (echo %%~na) else echo %%b )>># move # "%%a")pause