home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / Chip_2004-04_cd1.bin / tema / arachne / archn170.exe / ARACHNE.BAT < prev    next >
Encoding:
DOS Batch File  |  2000-10-21  |  1.8 KB  |  60 lines

  1. @echo off
  2. break=off>NUL
  3. rem --- Arachne is *.BAT which will make your PC survive to 21st century! ---
  4. rem ------ (c)1996-2000 Michael Polak, Arachne Labs, http://arachne.cz/ -----
  5. if (%1) == (-u) goto termin
  6. if not (%1) == () goto continue
  7. if not exist arachne.cfg setup.bat
  8. if not exist arachne.pck setup.bat
  9. if exist lock arachne.bat system\gui\err_lock.ah
  10. if exist ppp.log arachne.bat -r
  11. echo Don't worry, this is just Arachne lock file...>lock
  12. :continue
  13. core.exe %1 %2
  14. if errorlevel 128 goto fastexecute
  15. if errorlevel 64 goto execute
  16. if errorlevel 32 goto end
  17. if errorlevel 16 goto graphics
  18. if errorlevel 8 goto resolution
  19. rem ^^^^^^^^^^^^^^^^ warning! new errorlevels since 1.50 beta 3 !!!
  20. pause
  21. core.exe system\gui\fatal.ah
  22. if errorlevel 128 goto fastexecute
  23. if errorlevel 64 goto execute
  24. if errorlevel 32 goto end
  25. if errorlevel 16 goto graphics
  26. if errorlevel 8 goto resolution
  27. rem ^^^^^^^^^^^^^^^^ warning! new errorlevels since 1.50 "release candidate"
  28. if not exist core.exe goto noexe
  29. goto err
  30. :termin
  31. termin.com 0x60
  32. del ppp.log
  33. goto end
  34. :noexe
  35. echo CORE.EXE is missing.
  36. goto end
  37. :graphics
  38. :resolution
  39. core -s
  40. if errorlevel 32 goto end
  41. goto continue
  42. :execute
  43. $roura$.bat
  44. goto err
  45. :fastexecute
  46. if not (%ARACHNETEMP%)==() %ARACHNETEMP%\$roura$.bat
  47. %TEMP%\ARACHNE.TMP\$roura$.bat
  48. if exist %TEMP%ARACHNE.TMP\$roura$.bat %TEMP%ARACHNE.TMP\$roura$.bat
  49. :err
  50. echo Abnormal Arachne termination. Please reboot system and/or restart Arachne.
  51. :end
  52. if exist $roura?.bat del $roura?.bat
  53. if exist *._$b del *._$b
  54. if exist %ARACHNETEMP%\*._$b del %ARACHNETEMP%\*._$b
  55. if exist %TEMP%\ARACHNE.TMP\*._$b del %TEMP%\*._$b
  56. if exist ip-up.bat del ip-up.bat
  57. if exist ppp.log echo Type 'arachne -u' to terminate SLIP/PPP connection.
  58. if exist lock del lock
  59. echo.
  60.