hanyeguxing (寒夜孤星)当前离线
荣誉版主
@echo off&setlocal ENABLEDELAYEDEXPANSION set "ClassNO=a" set "WorkDir=E:\学生作业" for /f "delims=" %%a in ('dir /s/a/b "%WorkDir%\%ClassNO%*.txt"^|sort') do ( echo %%a set/a n+=1 ) echo 如上所示,共找到%n%份%ClassNO%班的作业! pause复制代码
TOP