1个回答
展开全部
@echo off&setlocal enabledelayedexpansion
(for /f "delims=" %%i in ('dir /ad /b "%~dp0"') do (
for /f "tokens=1-2*" %%j in ('dir /a /s "%~dp0%%i"^|findstr /r "[0-9]*.个文件\>"') do (set n=%%j)
echo %%i [!n! 个文件]))>>result.txt
pause
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询