如果一个变量等于,例如1然后goto到start1,但如果同一变量等于2然后goto到start2.
这是我到目前为止:
if %method% == "1" (goto start1)
if %method% == "2" (goto start2)
:start1
echo start1
pause
exit
:start2
echo start2
pause
exit
Run Code Online (Sandbox Code Playgroud)
但即使method变量是等于2它总是呼应我start1...
batch-file ×1