228630386 当前离线
三级士官
@echo off set n=0 set m=0 for /f "delims=" %%a in ('dir /s /a-d /b *.jpg') do ( set /a n+=1 more "%%a" | find "rdf:Bag" >nul && set /a m+=1 ) set /a t=%n%-%m% echo 该目录下共有%n%张JPG图片,其中%m%张有标记,%t%张无标记>"共有%n%张JPG图片,其中%m%张有标记,%t%张无标记.txt" exit复制代码
评分人数
CrLf 当前离线
论坛巡查
@findstr /s /m "rdf:Bag" *.jpg复制代码
TOP
@echo off for /f "delims=" %%a in ('findstr /s /m "rdf:Bag" *.jpg') do set /a 含标记+=1 for /f "delims=" %%a in ('dir /s *.jpg') do set /a 总数+=1 set /a 无标记=总数-含标记 echo 该目录下共有%总数%张JPG图片,其中%含标记%张有标记,%无标记%张无标记>"共有%总数%张JPG图片,其中%含标记%张有标记,%无标记%张无标记.txt"复制代码
@echo off for /f "delims=" %%a in ('findstr /s /m "rdf:Bag" *.jpg') do set /a 含标记+=1 for /f "delims=" %%a in ('findstr /s /m . *.jpg') do set /a 总数+=1 set /a 无标记=总数-含标记 echo 该目录下共有%总数%张JPG图片,其中%含标记%张有标记,%无标记%张无标记>"共有%总数%张JPG图片,其中%含标记%张有标记,%无标记%张无标记.txt"复制代码
pcl_test 当前离线
荣誉版主
@echo off (for /f "delims=" %%a in ('findstr /s /m "rdf:Bag" *.jpg') do set /a 含标记+=1 & echo %%a for /f "delims=" %%b in ('findstr /s /m . *.jpg') do set /a 总数+=1 set /a 无标记=总数-含标记 echo 该目录下共有%总数%张JPG图片,其中%含标记%张有标记,%无标记%张无标记)>统计信息.txt复制代码