CODE: [Copy to clipboard]
:: ------------------------------------------------------------------------------------显示%temp%\%sheet%.txt文件
@mode con cols=120
cls&echo.&echo.
color 1f
title 快速打开文件
echo.
for /f "delims=" %%a in (%temp%\%sheet%.txt) do set/a n+=1
:: 此句是累计%temp%\%sheet%.txt文件行数,也就是累计搜索到文件个数。set/a n=%n%-1 则是去掉%DATE% %time%时间一行数。
set/a n=%n%-2
echo ============================================ >>%temp%\%sheet%.txt
echo 搜索到“%filename%”文件总数为:%n% >>%temp%\%sheet%.txt
cls
for /f "delims=" %%i in (%temp%\%sheet%.txt) do echo %%i
:: 此句是把%temp%\%sheet%.txt文件显示在屏幕上。
:: ------------------------------------------------------------------------------------打开文件%temp%\%sheet%.txt
start %temp%\%sheet%.txt
搜索到“.mp3”文件总数为:93个时