跳到主要内容

Launch several executable files

IN A BATCH FILE (WINDOWS)

Create a file *.bat in a directory. Add as many line than useful following this template:

Compiled for Windows

cd C:\path\to\the\parent\folder
start MyExe.exe 9012

Compiled for Linux

start cmd /k wsl ./MyExe1 9012

IN A BATCH FILE (LINUX)

Create a file *.sh in a directory

Add at the begining of the text:

#!/bin/bash

Add as many line than useful following this template:

gnome-terminal -- ./MyExe1 9002 &
gnome-terminal -- ./MyExe1 9003 &
gnome-terminal -- ./MyExe1 9004 &
gnome-terminal -- ./MyExe2