Hi
I have a batch script that I have to run game servers, I am looking for a way in Batch idealy to beable to run Multiple game server exe. and be able to ckeck on them to see in there has been a crash and restart it if so.
I have been useing
tasklist /V /FI "Imagename eq %Server_Executable%" /NH | find /I "%Server_Executable%" > nul
I then for some servers need to use this
tasklist /V /FI "WindowTitle eq %Window_Title%" /NH | find /I "%Window_Title%" > nul
But I can’t use the Winodws Title, for all servers as the title is somtimes the path and it gets cut off, or in the cace of ark ascended the Title is just the exe and some other stuff the is not unique.
I have looked up other ways of acheving this goal, but they ether are not for my use or do not work and I have hit a wall. Thanks
I am hoping to get a way to be able to run Multiple exe with the same name (as in same game difrent folder and map).
I am able to do this alredy but I would like to be able to do it with a check to see if the server is running, the code I have now if there is a server running the next one will not start as the script checks for if it is running. If I don;t have this and the server shuts down for a update or crash it will not start again.