On 01/25/17, Avon said the following...
On 01/24/17, Pequito pondered and said...
The most basic trick is:
@REM LOOP.BAT
@ECHO OFF
CD \MYSTIC
:LOOP
MIS
TIMEOUT /T 5
GOTO LOOP
This only works if its MIS and not MIS2 in daemon mode.
This works for me on Win 7 running MIS..
I can take this a step further to really make it worth your wild.
The below will ensure the process is not running, 2nd will check if the
MIS.BSY file exist and remove it if its not running then restart MIS.
This is using default locations when installed.
@ECHO OFF
:LOOP
tasklist /FI "IMAGENAME eq mis.exe" 2>NUL | find /I /N "mis.exe">NUL
IF NOT '%ERRORLEVEL%' == '0' (
IF EXIST C:\MYSTIC\SEMAPHORE\MIS.BSY DEL C:\MYSTIC\SEMAPHORE\MIS.BSY
MIS
)
TIMEOUT /T 5
GOTO LOOP
+- $s.s$s.s$ ----------------------------------------+
| $ý"$$$"ý$ twinklebbs.homeip.net |
| .$$$. winkle BBS twinklebbs.homeip.net:8080 |
+-- .$$$$$. -----------------------------------------+
$ý"~"ý$ Christopher Malo aka Pequito!
--- Mystic BBS v1.12 A31 (Linux)
* Origin: Twinkle BBS (21:1/126)