TIP: Using the same bat file to start two games at once

Hi all,

I spent a bit of time trying to figure this out but finally got the SAME bat file to run two games at once. By default, copying/pasting the command will wait on the first to exit before starting the second. However, running them in parallel using the START command will do what we need here. Therefore, no need to run the same bat file twice.

Reference: Start - Start a program - Windows CMD - SS64.com

My batch file (coop_test.bat):

start "" "[path to editor]\UnrealEditor.exe" "[path to project]\CoopAdventure.uproject" -game -ResX=960 -ResY=540 -log -WINDOWED
start "" "[path to editor]\UnrealEditor.exe" "[path to project]\CoopAdventure.uproject" -game -ResX=960 -ResY=540 -log -WINDOWED

The [path to editor]\UnrealEditor.exe and [path to project]\CoopAdventure.uproject paths are the same as shown in the video Batch Script Testing, so no square brackets, etc.

For further reading, maybe check out the UE documentation links listed in this topic:

Hope this helps!

4 Likes

Privacy & Terms