home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / BBS / 515DISK2.ZIP / BIN515_1.ZIP / APPEL.BAT next >
DOS Batch File  |  1993-02-04  |  1KB  |  51 lines

  1. ESS 1
  2. ESS 2
  3.     echo off
  4.     cd \fbb                                                  
  5.     break off
  6.     echo Program is started, use ^C to interrupt within 3 seconds
  7.     sleep 3
  8.     serv %1
  9.     if errorlevel 2 goto direct
  10.     if errorlevel 1 goto suite
  11.     goto fin
  12. :suite
  13.     cls
  14.     echo Sorting HROUTE.SYS...
  15.     copy \fbb\system\hroute.sys temp.$$$                     
  16.     type temp.$$$ | sort | find /v "# " > \fbb\system\hroute.sys
  17.     del temp.$$$
  18.     echo
  19.     echo Backup of important files...
  20.     copy \fbb\system\dirmes.sys \fbb\backup\dirmes.s1           
  21.     copy \fbb\system\inf.sys \fbb\backup\inf.s1                
  22.     echo Cleaning up message-files...
  23.     del epurmess.res
  24.     epurmess
  25.  rem -------  The next line should be deleted if you are not using WP ------
  26.     epurwp 60
  27.     cd \fbb\system
  28.     MAINTINF 3 /a
  29.     COPY C:\FBB\SYSTEM\INF.NEW C:\FBB\SYSTEM\INF.SYS
  30.     cd \fbb
  31.     del c:\fbb\system\dirmes.new
  32. :direct
  33.     cd \fbb\system
  34.     tlabel
  35.     cd \fbb\system\sat                                        
  36.     if not exist amsat.txt goto appel                         
  37.     satupdat amsat.txt /n > satupdat.res
  38.     satupdat amsat.txt >> satupdat.res
  39.     del amsat.txt
  40. :appel
  41.     cd \fbb
  42.     echo Program is started, use ^C to interrupt within 3 seconds
  43.     sleep 3
  44.     serv -t
  45.     if errorlevel 2 goto direct
  46.     if errorlevel 1 goto suite
  47. :fin
  48.     echo Program is terminated..
  49.     break on
  50.     Echo on
  51.