02-22-2011, 03:35 AM
(This post was last modified: 02-22-2011, 03:37 AM by ghosttaker.)
Hello.
I need someone who can help me with a batch script.
What I need is a batch file there will automatic close the srcds.exe if the batch script close.
I currently have this:
- This will only keep the server up and running, if the srcds.exe crash, witch I also need.
But in my webpanel I have made a stop button to stop the server from running.
My button stop the batch script, so the batch script then needs to force the srcds.exe to shutdown with it.
Do anyone know how this can be made?
- Thanks .
I need someone who can help me with a batch script.
What I need is a batch file there will automatic close the srcds.exe if the batch script close.
I currently have this:
Code:
:srcds
echo (%time%) srcds started.
start /wait srcds.exe -console -game cstrike +map de_dust2 +maxplayers 12
echo (%time%) WARNING: srcds closed or crashed, restarting.
goto srcds
But in my webpanel I have made a stop button to stop the server from running.
My button stop the batch script, so the batch script then needs to force the srcds.exe to shutdown with it.
Do anyone know how this can be made?
- Thanks .