• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Windows batch not executing exe

Jeyci

Banned User
Joined
May 6, 2023
Messages
289
Solutions
3
Reaction score
36
Hi

I'm trying to use batch file to execute my exe if it closes or crashes. i saved the file as restarter.batch, my os is windows 10.
have my batch file as open with sublime. my exe name is theforgottenserver-x64.exe
Lua:
@echo off
:a
theforgottenserver-x64.exe
goto a
Untitled.png
 
Sounds like Windows service (never tried to use for server but should work):
Code:
sc create <servicename> binpath= "<pathtobinaryexecutable>" [option1] [option2] [optionN]
 
Sounds like Windows service (never tried to use for server but should work):
Code:
sc create <servicename> binpath= "<pathtobinaryexecutable>" [option1] [option2] [optionN]
thank you solved with a light tool called RestartOnCrash.exe it even opens the exe after computer turns off
 
Back
Top