@echo off ( for /f "delims=" %%a in ('dir /b /a-d *.txt') do ( for /f "usebackq tokens=5 delims= " %%b in ("%%a") do ( echo]%%b ) ) )>new.log pause复制代码