2019/01/29 10:32 0 2019129103247.txt
2019/01/29 09:43 53,509 2019129094349.jpg
2019/01/29 09:37 227,897 2019129094949.jpg
2019/01/29 09:32 159,064 2019129101214.jpg
2019/01/29 09:30 106,066 2019129101534.jpg
2019/01/28 11:56 47,267 2019128115701.jpg
2019/01/25 16:53 4,263 2019125165344.jpg
2019/01/25 15:19 0 1616.txt
2019/01/25 13:24 0 1515.txt
2019/01/25 13:08 0 1212.txt
只显示最后的文件名即可
下面是从网上找的- @echo off
- setlocal enabledelayedexpansion
- set count = 0
- dir /a-d /o-d /s |sort /r >>TmpSort.txt
- For /f "delims=" %%i in (TmpSort.txt) DO (
- set /a count += 1
- if !count! GTR 2 if !count! LEQ 12 echo %%i >>TmpSort2.txt
- )
- REM echo y |del TmpSort.txt
- pause
复制代码
|