restart.bat

tinymuck/game/restart.bat · 646 B

From the archive tinymuck-1.2-r10.tar.gz

Download the archive   « Back to the archive contents

@echo off
REM
REM Sole argument is a port number, if desired,
REM if none is given defaults to 6250.
REM

CD game

IF NOT EXIST small.db.new.PANIC GOTO normal
FIND "***END OF DUMP***" small.db.new.PANIC
IF NOT ERRORLEVEL 1 GOTO error
COPY small.db.new.PANIC small.db.new
GOTO normal

:error
DELETE small.db.new.PANIC
ECHO "Warning: PANIC dump failed.

:normal
IF NOT EXIST small.db COPY ..\small.db .
COPY small.db small.db.old

IF NOT EXIST small.db.new GOTO getold
COPY small.db.new small.db
GOTO startup	

:getold
COPY small.db.old small.db

:startup
..\netmuck small.db small.db.new %* >> small.log 2>&1

CD ..

Site Stats

Snippets: 1791
Codebases: 571