バッチ ファイル全体で変数の転送に問題があります。
これは私が持っているものの大まかな例です:
@echo off
setlocal enabledelayedexpansion
:one
set variableone=outputone
set variabletwo=outputtwo
set variablethree=outputthree
goto two
:two
set /a variable%variableone%four=numberone
set /a variable%variabletwo%five=numbertwo
set /a variable%variablethree%six=numberthree
goto three
:three
set /a variable%variableone%four+=(2*(!variable%variabletwo%five!-!!variable%variablethree%six!)
echo !variable%variableone%four!
exit
それよりもかなり長く、これは実際の単純化されたバージョンにすぎませんが、ラベル「:three」の変数は転送されないため、変数は空白になり、方程式も空白のままになります。これを修正する方法はありますか?