如何从文本文件加载变量?
这是我用来保存它的代码:
@echo off
set name=john
set power=1000
set mana=100
set health=150
set name2=set name=%name%
set power2=set power=%power%
set mana2=set mana=%mana%
set health2=set health=%health%
(
echo %health2%
echo %mana2%
echo %power2%
echo %name2%
) > save.txt
pause>nul