• 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 Restarter for TFS 1.0

vichoko

Member
Joined
Oct 9, 2008
Messages
128
Reaction score
6
Location
Santiago, Chile
I'm trying to make an auto-restarter for my tfs.exe executable.
I've made this simple batch script:
Code:
:again
START /WAIT .\tfs.exe
goto again

But the thing is that when .\tfs.exe crashes, the batch screen asks for a confirmation (Y/N) before alowing the cycle to continue, and therefore not restarting the server.
I think this is a sort of security wall, because my antivirus warned me about this "infinite loop" (I added the batch to exceptions; so don't worry about my antivirus). So this "busy waiting loop" has to be a well known type of CPU using malicious code; but in this case is not! :D

Anyone have an idea for getting this work?
Thanks for reading and take your time :)
 
Back
Top