newswan 当前离线
上尉
@echo off setlocal enableDelayedExpansion call u2.bat echo !var!复制代码
@echo off setlocal enableDelayedExpansion set var=Value复制代码
77七 当前离线
中校
@echo off setlocal enableDelayedExpansion set var=Value endlocal & set var=%var%复制代码
TOP
aloha20200628 当前在线
@echo off & setlocal enabledelayedexpansion set "v1=123" call u2.bat v1 echo,!v1!【%v1%】 echo,!v2!【%v2%】复制代码
@echo off & setlocal enabledelayedexpansion echo,!%~1! ( endlocal set "%~1=456" set "v2=789" )复制代码