for /f "tokens=1,2 delims= " %%i in ('dir/b *.jpg') do ( set /a "n+=1" echo %n% ) 怎什显示不出n的值

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/18 19:16:37
for/f"tokens=1,2delims="%%iin(''dir/b*.jpg'')do(set/a"n+=1"echo%n%)怎什显示不出n的值for/f"tokens=1,2delims="%%

for /f "tokens=1,2 delims= " %%i in ('dir/b *.jpg') do ( set /a "n+=1" echo %n% ) 怎什显示不出n的值
for /f "tokens=1,2 delims= " %%i in ('dir/b *.jpg') do ( set /a "n+=1" echo %n% ) 怎什显示不出n的值

for /f "tokens=1,2 delims= " %%i in ('dir/b *.jpg') do ( set /a "n+=1" echo %n% ) 怎什显示不出n的值
for /f "tokens=1,2 delims= " %%i in ('dir/b *.jpg') do (
set /a n+=1
call echo %%n%%
)
即可