@echo off setlocal enabledelayedexpansion :: 设置输入文件名 set "input=input.txt" set /a maxlines=20000 :: 获取当前日期作为文件夹名(格式:YYYY-MM-DD) for /f %%i in ('powershell -NoProfile -Command "Get-Date -Format yyyy-MM-dd"') do set "datedir=%%i" :: 创建日期文件夹 if not exist "%datedi…