@echo off
setlocal enabledelayedexpansion
set c=kkd
for /f "delims=" %%a in ('dir /s /b /a-d') do (
set "b=%%a"
if defined b (
for /f "tokens=1-2" %%A in ('dir "%%~fa" /TC^|findstr "^[0-9][0-9]"') do
(
set "c=%%A %%B"
)
echo 文件:%%~nxa 所属路径:%%~dpa
echo %%~za字节 创建于!c! 修改于%%~ta
echo.
)
)