wait after call command minecraft

Posted by smeagogol on Super User See other posts from Super User or by smeagogol
Published on 2012-11-17T11:25:26Z Indexed on 2012/11/20 17:05 UTC
Read the original article Hit count: 244

Filed under:
|
|

I'm trying to create a batch file for a friend because he has some problems on minecraft. He needs to launch minecraft 80 times without closing java error... I have 2 batches, one with a while, and an other one executing java command for launching minecraft.

::Launcher.bat
title Script Minecraft
set tour=10
set tour2=tour

:boucle
set /a tour=tour-1
call "D:\thepath\Minecraft2.bat"
if %tour%==0 goto suite
goto boucle

:suite
wait javaw.exe

:boucle2
set /a tour2=tour2-1
taskkill /F /IM "javaw.exe"
if %tour2%==0 goto fin
goto boucle2

:fin
echo Appuyez sur une touche pour quitter...
pause >nul

and the other one

::Minecraft2.bat
@echo off
java -Xmx2048m -Xms1024m -cp "D:\thepath\Minecraft.exe" net.minecraft.LauncherFrame

My problem is that when it calls the second batch, it's waiting for closure of the window but we must leave them opened !

If someone has already encountered this problem, I'd be grateful.

Thanks

PS: If my english is bad, it's because I'm french ;)

© Super User or respective owner

Related posts about java

Related posts about batch