home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0200 - 0209 / ibm0200-0209 / ibm0200.tar / ibm0200 / S664PWA2.ZIP / RESCUE.BAT < prev    next >
Encoding:
DOS Batch File  |  1994-05-06  |  2.9 KB  |  95 lines

  1. @echo off
  2. TKUtil Drivetype /nc /nm /silent
  3. IF ERRORLEVEL=2 GOTO Start
  4. echo Rescue must not be run from a floppy disk, install the Toolkit first.
  5. goto end
  6. :Start
  7. cls
  8. echo  
  9. echo                     Anti-Virus Toolkit Rescue Disk
  10. echo  
  11. echo  
  12. echo A Rescue Disk is very useful for repairing damage caused by viruses.
  13. echo  
  14. echo This damage can mean that DOS doesn't work properly.
  15. echo  
  16. echo When removing a virus from your hard disk it is much safer to boot
  17. echo your computer from a rescue disk.
  18. echo  
  19. echo To create a rescue disk, you will need a formatted DOS system disk.
  20. echo  
  21. echo ┌──────────────────────────────────────────────────────────────────────┐
  22. echo │ If you need drivers to access your hard disk (such as for STACKER,   │
  23. echo │ SUPERSTOR, or some SCSI drives) you will need to copy these drivers  │
  24. echo │ across, and create an appropriate CONFIG.SYS.                        │
  25. echo └──────────────────────────────────────────────────────────────────────┘
  26. echo  
  27. echo The disk should be made write enabled, so that parts of the Anti-Virus
  28. echo Toolkit can be copied to it. It will then be scanned for viruses.
  29. echo  
  30. :getkey
  31. echo Do you have a suitable disk in drive A: y/n ?
  32. echo  
  33. TKUTIL RetKey /nm /nc /silent
  34. IF ERRORLEVEL=90 GOTO WrongKey
  35. IF ERRORLEVEL=89 GOTO make
  36. IF ERRORLEVEL=79 GOTO Wrongkey
  37. IF ERRORLEVEL=78 GOTO nodisk
  38. Goto WrongKey
  39. :make
  40. echo  
  41. echo Please wait while a rescue disk is created...
  42. COPY CLEANPAR.EXE A: >nul
  43. if not exist a:\cleanpar.exe goto NoRoom
  44. COPY FINDVIRU.EXE A: >nul
  45. if not exist a:\findviru.exe goto NoRoom
  46. COPY MEM.DRV A: >nul
  47. if not exist a:\mem.drv goto NoRoom
  48. COPY GUARDMEM.COM A: >nul
  49. if not exist a:\guardmem.com goto NoRoom
  50. COPY QFV*.DRV A: >nul
  51. if not exist a:\qfv*.drv goto NoRoom
  52. COPY TKUTIL.EXE A: >nul
  53. if not exist a:\tkutil.exe goto NoRoom
  54. COPY RESCUE.INF A:AUTOEXEC.BAT >nul
  55. if not exist a:\autoexec.bat goto NoRoom
  56. echo  
  57. echo Please wait while rescue disk is scanned for viruses
  58. FINDVIRU /D=A /oneonly
  59. TKUTIL CPU /nm /nc /silent
  60. IF ERRORLEVEL=2 GOTO 286
  61. IF ERRORLEVEL=1 GOTO 86
  62. :286
  63. A:CLEANPAR /AT /B=A:\BUPART.CPB
  64. if errorlevel = 2 goto Error1
  65.  
  66. if not exist a:\bupart.cpb goto NoRoom
  67. GOTO Finished
  68. :86
  69. CLEANPAR /B=A:\BUPART.CPB
  70. if errorlevel = 2 goto Error1
  71.  
  72. if not exist a:\bupart.cpb goto NoRoom
  73. CLS
  74. :finished
  75. echo  
  76. echo                      The Rescue Disk has been created
  77. GOTO end
  78. :NoRoom
  79. echo         The Rescue Disk was NOT created.  Not enough disk space.
  80. goto end
  81. :error1
  82. echo                   The Rescue Disk was NOT created.
  83. goto end
  84. :WrongKey
  85. echo  
  86. echo Must answer 'y' or 'n', please try again
  87. goto GetKey
  88. :nodisk
  89. echo  
  90. echo You should create a system disk with the command FORMAT A: /S
  91. echo If you need drivers to access your hard disk (such as for STACKER,
  92. echo SUPERSTOR, or some SCSI drives) please remember to copy these
  93. echo drivers across, and create an appropriate CONFIG.SYS.
  94. :end
  95.