i'm trying to have my batch open another cmd based program, wait some time, then input some commands into the cmd-based program, but can't find any documentation on how to do it. this is the batch file as it is written so far:
:loop start java -Xmx8192M -Xms8192M -jar minecraftforge-universal-1.6.2-184.108.40.2061.jar timeout /t 300 save-all stop timeout /t 120 goto loop
basically, the program runs then after 300 secs its supposed to save then close, then wait 120 secs, then loop. but the batch as it is right now inputs the "save-all" and "stop" commands into itself rather than the running program. i have to use the "start" command to run it in a separate instance or else the batch never runs any of the following commands.