:: ------------------------------------------------------------------------------------显示%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个时
能看到DOS窗口“头”

搜索到“.mp3”文件总数为:1134个时
看不到DOS窗口“头”

http://www.cn-dos.net/forum/viewthread.php?tid
=47029&fpage=1
[ Last edited by dosz on 2009-4-25 at 04:12 ]
*/. . . * .
.\* . * dosz
*/ . ./\~~~~~~~~~~~~'\. ^|◆
\* ,/,..,\,...........,\.◆
^|^| ..▎# ▎田 田 ▎ ^| ▎◆
^|^| ^&^&▎ ▎ ▎'^|'▎ o
^|^| ##■■■■■■■■■■〓
.\* . * dosz
*/ . ./\~~~~~~~~~~~~'\. ^|◆
\* ,/,..,\,...........,\.◆
^|^| ..▎# ▎田 田 ▎ ^| ▎◆
^|^| ^&^&▎ ▎ ▎'^|'▎ o
^|^| ##■■■■■■■■■■〓


