@echo off
set a=d:\视频录像的资料
set t=201009021501
for /f "skip=5 tokens=1,2,3,4,5,7* delims=-:/ " %%i in ('dir "%a%" /a:-d /t:c') do if not "%%m" == "" if "%%i%%j%%k%%l%%m" lss "%t%" echo "%a%\%%n%%o"
echo 测试目录为%a%
echo 分隔时间为%t:~0,4%年%t:~4,2%月%t:~6,2%日%t:~8,2%时%t:~10,2%分
pause>nul
“d:\视频录像的资料”为要检查的目录。时间点设置为2010年09月02日15时01分
用这个来测试。列表中没有显示该文件夹中的所有文件吗?你把显示的结果贴图出来。
具体说一下,怎么不行?
Last edited by Hanyeguxing on 2009-12-17 at 12:56 ]
@echo off
set a=d:\视频 recording materials
set t=201009021501
for /f "skip=5 tokens=1,2,3,4,5,7* delims=-:/ " %%i in ('dir "%a%" /a:-d /t:c') do if not "%%m" == "" if "%%i%%j%%k%%l%%m" lss "%t%" echo "%a%\%%n%%o"
echo The test directory is %a%
echo The separated time is %t:~0,4% years %t:~4,2% months %t:~6,2% days %t:~8,2% hours %t:~10,2% minutes
pause>nul
"The "d:\视频 recording materials" is the directory to be checked. The time point is set to September 2, 2010, 15:01.
Use this to test. Does the list not display all the files in this folder? Please post the displayed results as a picture.
Specifically, why doesn't it work?
Last edited by Hanyeguxing on 2009-12-17 at 12:56 ]