an410398183 当前离线
列兵
@echo off set value1=testtesttest set value2=hello set value3=test set "value1=%value1:%value3%=%value2%%" echo %value1% pause复制代码
TOP
tmplinshi 当前离线
版主
@echo off setlocal enabledelayedexpansion set value1=testtesttest set value2=hello set value3=test set "value1=!value1:%value3%=%value2%!" echo %value1% pause复制代码