CODE: [Copy to clipboard]@echo off set file=C:\test\a.txt for /f "skip=5" %%a in ('dir /tc "%file%"') do ( set CrtDay=%%a goto :show ) :show echo 文件%file%的创建日期:%CrtDay%