@echo off
setlocal EnableDelayedExpansion
mode con cols=45 lines=20&color c
set ko_=0
echo.&echo 正在扫描......
for /r d: %%1 in (*.txt) do (
echo %%1 >>2.txt
set /a ko_+=1
)
echo.&echo 共有 !ko_! 个文档文件。
ping/n 5 127.1 >nul
exit/b
如何将扫描结果过程用title 显示出来??作者: PPdos 时间: 2007-2-18 17:54 @echo off
setlocal EnableDelayedExpansion
mode con cols=45 lines=20&color c
set ko_=0
echo.&echo 正在扫描......
for /r d: %%1 in (*.txt) do (
echo %%1 >>2.txt
title %%1
set /a ko_+=1
)
echo.&echo 共有 !ko_! 个文档文件。
ping/n 5 127.1 >nul
exit/b作者: PPdos 时间: 2007-2-18 18:00 标题: 简化点
@echo off
mode con cols=45 lines=20&color c
echo.&echo 正在扫描......
for /r d: %%1 in (*.jpg) do (
echo %%1 >>2.txt
title %%1
set /a ko_+=1
)
echo.&echo 共有 %ko_% 个文档文件。
ping/n 5 127.1 >nul作者: anqing 时间: 2007-2-18 22:33 相当漂亮