REM 'launchtest.bat' Author: Tochi @echo off set a=0 title HeavenMS: Offline color 1b :clear cls echo HeavenMS Server Launcher echo. echo Commands: echo ------------------------------------------------------------- echo start - Start HeavenMS server echo shutdown - Shut down HeavenMS server and close Launcher File echo restart - Restart HeavenMS Launcher File echo clear - Clear this window echo ------------------------------------------------------------- echo. :command set /p s="Enter command: " if "%s%"=="start" goto :start if "%s%"=="shutdown" goto :shutdown if "%s%"=="restart" goto :restart if "%s%"=="clear" goto :clear echo Wrong Command. echo. goto :command :start if "%a%"=="1" ( echo HeavenMS is already active! echo. goto :command ) color 4c echo This might take a while.... echo. title HeavenMS: activating echo Server Launching... start /b launch.bat color 2a title HeavenMS: Online set a=1 ping localhost -w 10000 >nul echo. goto :command :shutdown color 4c title HeavenMS: Shutting Down... echo The Server Launcher will be close in a few seconds. ping localhost -w 100000 >nul taskkill /im cmd.exe :restart color 4c title HeavenMS: Restarting... echo Please type 'start' in command box after bat file have been restarted. ping localhost -w 100000 >nul start launch.bat taskkill /im cmd.exe