在我的机子上运行通过了,这是我的测试代码:
@echo off
echo.
for %%a in (c d e f) do (
for /f "tokens=1,3* delims= " %%i in ('dir /s /a-d /tc "%%a:\*.exe"^|findstr "2008-03"') do (
dir /s /b /a-d /tc "%%a:\%%k"
)
)
echo.&pause
运行结果:
F:\test\more\新建文件夹>查找指定时间创建的文件并列出路径.bat
c:\WINDOWS\system32\gawk.exe
c:\WINDOWS\system32\winclip.exe
c:\WINDOWS\system32\taskmgr.exe
c:\Documents and Settings\aa\「开始」菜单\程序\启动\taskmgr.exe
d:\Program Files\360safe\360safeup.exe
d:\Program Files\360safe\SoftMgr\esslibupdate.exe
d:\Program Files\eMule\update\eMule-0.48a-VeryCD080126-Update.exe
d:\Program Files\kof1.0\kof1.0.exe
d:\Program Files\Maxthon2\_Maxthon.exe
d:\Program Files\Tencent\QQ\QQPlayerSvr.exe
d:\Program Files\Thunder\Program\Update\PPlayerSetup_1.2.8.122_20080306.exe
d:\Program Files\Thunder\Program\Update\UpdateStreamMedialib_20080311.exe
d:\test\ActiveMouse.exe
e:\RECYCLER\S-1-5-21-220523388-1004336348-725345543-1003\De16.exe
e:\安装程序\Adobeflashplayer.exe
f:\test\可执行文件当服务运行\runassrv.exe
...