@echo off for /r F: %%a in (*.exe) do ( for /f "tokens=1,2" %%b in ('dir /t:c "%%~fnxa"^|find "%%~nxa"') do ( echo %%~nxa 的创建时间为 %%b %%c ) ) pause
wmic datafile where "name='c:\\windows\\explorer.exe'" get creationdate