I have very long .bat file with many settings, which STARTS and .exe file. I wanna execute this .bat file using execandwait() function, but it waits for the cmd to be executed and doesn't waits for the script in bat to be executed.
Example:Lets say I have this
test.bat file:
Код
START C:\Windows\NOTEPAD.EXE
With notepad.exe is hard to see the problem, so change the path to any application which loads slower. (Ex: D:\Game\CLIENT.EXE)
Then I start this script:
Код
--lua
wait(1000)
execandwait("D:\\test.bat")
And script stops before the given .EXE is executed.
Does anyone faced this problem and can it be solved?