Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Server Batch

Joined
Apr 6, 2012
Messages
545
Reaction score
217
Code:
Echo off
cls
Echo.
Echo Server Manager
Echo .................................................
Echo °
Echo ° 1 /start Loong server
Echo °
Echo ° 2 /Stop  Loong server
Echo °
Echo ° 3 /restart LoongWorld server
Echo °
Echo ° 4 /Client clean stop
Echo °
Echo .................................................
Echo.
Choice /C 1234 /M "Chooise commande you wish"

If Errorlevel 4 Goto 4
If Errorlevel 3 Goto 3
If Errorlevel 2 Goto 2
If Errorlevel 1 Goto 1
Goto End



:1
Echo server start
start C:\Game\server\LoginServer
ping -n 1 127.0.0.1 >nul
start C:\Game\server\LoongBillServer
ping -n 2 127.0.0.1 >nul
start C:\Game\server\LoongDB
ping -n 10 127.0.0.1 >nul
start C:\Game\server\LoongWorld

start C:\Game\server\Manager.bat
exit
Goto End

:2
Echo server stop
taskkill /f /t /im LoginServer.exe
taskkill /f /t /im LoongBillServer.exe
taskkill /f /t /im LoongDB.exe
taskkill /f /t /im LoongWorld.exe

start C:\Game\server\Manager.bat
exit
Goto End

:3
Echo server restart
taskkill /f /t /im LoongWorld.exe
ping -n 10 127.0.0.1 >nul
start C:\Game\server\LoongWorld

start C:\Game\server\Manager.bat
exit
Goto End

:4
Echo close client
taskkill /f /t /im Client.exe

start C:\Game\server\Manager.bat
exit
Goto End

:End

Manager.bat = this files
 
Last edited:
Back
Top