Download

Question: Launching a Dedicated Server in Runtime with C++

Hello!
I am working on a multiplayer game that will have multiple concurrent worlds and am pursuing a system where each world is a separate server that is loaded when needed and unloaded if nobody is connected. I have been able to open up servers with defined ports and maps using a command like this in a Windows batch file:

START Server.exe /Game/Maps/MapName -PORT=7778 -log

I would like to figure out a way to do this in runtime through C++, but I have no idea how to go about it. Any input is appreciated.
Thank you!