home *** CD-ROM | disk | FTP | other *** search
/ BUG 12 / BUGCD1998_03.ISO / internet / arachne / arachne.exe / KLOS.TPL < prev    next >
Text File  |  1997-10-15  |  2KB  |  57 lines

  1. @echo off
  2. break=off
  3. rem --- Arachne is *.BAT which will make your PC survive to 21st century ---
  4. rem --- (c)1996,1997 xChaos software, URL: http://www.naf.cz/arachne/    ---
  5. if (%1)==(-r) goto start
  6. if (%1)==(-c) goto start
  7. if (%1)==(-rg) goto start
  8. if (%1)==(-cg) goto start
  9. if (%1)==(-o) goto online
  10. if (%1)==(-u) goto unload
  11. if not exist pppmenu.exe goto start
  12. if (%KLOS%)==(LOADED) goto start
  13. rem --- These KLOS PPP resident utilities can be loaded to high memory:  ---
  14. rem Try 'lh lsl.com' or 'hiload lsl.com' (hiload is used in OpenDOS)
  15. lsl.com
  16. rem Try 'lh ppp.exe' or 'hiload ppp.exe'
  17. ppp.exe
  18. rem Try 'lh ipstub.exe 0x60' or 'hiload ipstub.exe 0x60'
  19. ipstub.exe 0x60
  20. set KLOS=LOADED
  21. rem --- This batch file works with core.exe version 1.0 beta 8 or higher ---
  22. :start
  23. core.exe %1 %2
  24. if errorlevel 128 goto end
  25. if errorlevel 64 goto execute
  26. :again
  27. core.exe fatal.ah
  28. if errorlevel 128 goto end
  29. if errorlevel 64 goto execute
  30. goto again
  31. :online
  32. if exist pppwat.exe pppwat.exe
  33. goto start
  34. :unload
  35. if exist ppp.log goto termin
  36. if not exist pppmenu.exe goto end
  37. ipstub.exe 0x60 unload
  38. ppp.exe u
  39. lsl.com u
  40. set KLOS=
  41. goto end
  42. :termin
  43. termin.com 0x60
  44. del ppp.log
  45. goto end
  46. :execute
  47. $roura$.bat
  48. cls
  49. echo Abnormal Arachne termination. Please reboot system and/or restart Arachne.
  50. :end
  51. if exist $roura$.bat del $roura$.bat
  52. if exist *._$b del *._$b
  53. if exist ip-up.bat del ip-up.bat
  54. if exist ppp.log echo Type 'arachne -u' to terminate SLIP/PPP connection.
  55. if (%KLOS%)==(LOADED) echo Type 'arachne -u' to unload KlosPPP from memory.
  56. echo.
  57.