@echo off REM I got sick and tired of having the run the EXE from the root folder, and REM the bin folder always being empty. Thats not the way it's supposed to work REM So decided to make this bat, which will allow those running on Windows to REM run Circle in the proper fashion. No more running from the root folder!!!!! REM This is bat works just like the autorun scripts for other OSes. It auto REM reloads the server after the server exits, unless there is a .killscript REM file in the root folder. Windows will not let you create a .killscript REM (XP atleast) from the desktop, however circle can generate it itself, as REM well as any other program (including notepad). Though you don't need to REM create a .killscript manually, as simply closing the command window Circle REM is running in will prevent it from reloading. REM Autorun.bat version 1.1 REM Created by Keri 'Ivier' Mathews REM REM Version History: REM Version 0.1 REM Created Initial script REM Version 1.0 REM Assed rant =P REM Added support for .killscript REM Version 1.1 REM Added "Created by" =P REM Added Version History =P REM Added support for pause and .fastboot REM TODO: REM Add Process and rotate logs REM Remove rant, because it's longer then the script set MUD_PORT=4000 set MUD_FLAGS= set MUD_NAME=CircleMUD set EXE_NAME=Circle.exe :runloop IF NOT EXIST .killscript GOTO end_kill echo recieved .killscript ending autorun.bat on %DATE% at %TIME$ DEL .killscript GOTO the_end :end_kill echo. echo autorun.bat starting %MUD_NAME% on %DATE% at %TIME% echo running %CD%\bin\%EXE_NAME% with the arguments arguments '%MUD_FLAGS%' on Port %MUD_PORT% echo. bin\%EXE_NAME% %MUD_FLAGS% %MUD_PORT% IF NOT EXIST .fastboot GOTO wait60 DEL .fastboot :pause IF NOT EXIST pause GOTO end_pause :wait60 CHOICE /T:N,60 > NUL GOTO pause :end_pause GOTO runloop :the_end