批处理for语句中镶嵌set语句 但for语句之前没有set=0,能这样写吗?
@echooffsetlocalenabledelayedexpansionfor/f"delims="%%ain('type11.txt')do(set/am+=1se...
@echo off
setlocal enabledelayedexpansion
for /f "delims=" %%a in ('type 11.txt')
do ( set /a m+=1
set "home!m!=%%a" ) 展开
setlocal enabledelayedexpansion
for /f "delims=" %%a in ('type 11.txt')
do ( set /a m+=1
set "home!m!=%%a" ) 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询