@echo off
rem change to correct drive
d:
rem change to correct directory
cd\commo\telix3
rem   Put your comm prg here to load it and run HoboScan on exit
rem telix  
rem  runs my HostPlus BBS in Telix
telix shostplus
rem   I use this file to call hoboscan from my BBS on each logoff
rem   this checks the files (and updates my log) before the nest
rem   caller can login.  Scanning the log will let me know who
rem   uploaded an infected file.  This is set as an event.
rem   A nightly event also can be used during maintenance period.
rem   Something similar should support almost any BBS
rem change to correct drive
d:
rem change to commo directory where hoboscan lives
cd\commo\telix3
rem execute hoboscan
hoboscan

rem if errorlevel==32 then virus
rem etc - see docs

rem verify current drive & path
rem (I have this as a habit in batch files for safety)
d:
cd\commo\telix3
rem if no files were processed goto end
if not exist hobowork.tst goto end
rem otherwise do my BBS file maintenance - substitute your BBS files manager
rem
rem for hpcomp (HostPlus files manager)
rem compress file list for uploads - 
rem remove file from list if not found(ie removed by HoboScan)
hpcomp /f k b:1
:end
rem if virus was reported by VirusScan this alerts me for manual run
rem or on exit from comm prg
if exist hobowarn.tst echo Virus found - check uploads in d:\zzz carefully!
if exist hobowarn.tst type hobowarn.tst
rem remove the files - my BBS logfile has been annotated by HoboScan
del hobowork.tst
del hobowarn.tst
@echo on
rem call the board back if needed by your application  
rem telix /shostplus   ; would run hostplus without rem
rem board              ; would run board.bat without rem
