@echo offset fn=a.txt(for /f "tokens=1* delims=-" %%i in ('type "%fn%"‘) do echo %%j)>temp.txtmove /y temp.txt “%fn%"