WBATW 当前离线
上等兵
TOP
ShowCode 当前离线
VIP1
@echo off cd /d "%~dp0" set "InFile=list.log" set "OutFile=list.log.new" setlocal enabledelayedexpansion (for /f "delims=" %%i in ('dir /b /a-d "*.pdf"') do ( set /p str= echo !str!=%%i ))<"%InFile%" >"%OutFile%" move /y "%OutFile%" "%InFile%" pause复制代码