Reputation: 32173
I have a set of three automatically generated batch files, summed up below
arbitrary.bat
@ECHO OFF
set APPDATA=C:\Users\%USERNAME%\AppData\Minecrafts\1.9p5\
set T1=ÚÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
set T2=³ÍÍÍ 1.9p5 ÍÍͳ
set T3=ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
masterControl
masterControl.bat
varInit
[main program logic...]
varInit.bat
set U=valueOfU
set P=valueOfP
set S=valueOfS
pause
The idea is that arbitrary.bat
is run and the other two are called, as well. However, the program stops right after masterControl
runs its first line (all lines in varInit
are run successfully). **Why doesn't this program run past the first line of masterControl
?
Upvotes: 1
Views: 506
Reputation: 1925
You have to use the command CALL
to call each batch file from another i.e. CALL masterControl.bat
Upvotes: 5