回复 1# fangjf
假设待处理的文件都是.log文件
V1.bat和待处理的log文件放在同一个文件夹下执行- @echo off
- cd /d "%~dp0"
- set "NewFolder=D:\fang"
- md "%NewFolder%" 2>nul
- for /f "delims=" %%i in ('dir /b /a-d *.log ^| findstr /c:"16.00" /c:"18.00" ^| findstr /e /c:"-1.log"') do (
- echo "%%i" ---^> "%NewFolder%\"
- move /y "%%i" "%NewFolder%\"
- )
复制代码
|