LJY4.0 当前离线
四级士官
hfxiang 当前离线
上尉
TOP
qixiaobin0715 当前离线
大校
@echo off set str=D:\nsc\x\ddd\ set str="%str:\=" "%" set n=-1 for %%i in (%str%) do set /a n+=1 echo,%n% pause复制代码
set "str=D:\nsc\x\ddd\" set /a n=0 :start set "str1=%str:*\=%" if not defined str1 ( set /a n+=1 goto :end ) if not "[%str%]"=="[%str1%]" ( set /a n+=1 set "str=%str1%" goto :start ) :end echo;斜杠数:%n%复制代码