bat如何将字符串拆分作为引用参数
setobj=base,schoolfor%%iin(%obj%)do(set"cc=!cc!^!!xx!^!%%!xx!_judge%%")echo!cc!当前结果:!...
set obj=base,school
for %%i in (%obj%) do (
set "cc=!cc! ^!!xx!^! %%!xx!_judge%%"
)
echo !cc!
当前结果: !base! %base_judge% !school! %school_judge%
目标结果:作为参数的使用,好像echo !base! %base_judge% !school! %school_judge%将参数引用 展开
for %%i in (%obj%) do (
set "cc=!cc! ^!!xx!^! %%!xx!_judge%%"
)
echo !cc!
当前结果: !base! %base_judge% !school! %school_judge%
目标结果:作为参数的使用,好像echo !base! %base_judge% !school! %school_judge%将参数引用 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询