本帖最后由 foxJL 于 2013-11-6 14:12 编辑
回复 11# vane - @echo off&setlocal enabledelayedexpansion
- set /p folder=输入目录:
- (for /r "%folder%\" %%a in (.) do (
- set /a n=0
- set s=%%a&set s=!s:~,-1!
- for %%b in ("!s!\*") do set /a n+=1,m+=1
- if not !n! equ 0 echo,%%~na--!n!
- )
- echo,文件总数 !m!)>list.txt
- start list.txt
- pause
复制代码
|