home *** CD-ROM | disk | FTP | other *** search
- @echo off
- TKUtil Drivetype /nc /nm /silent
- IF ERRORLEVEL=2 GOTO Start
- echo Rescue must not be run from a floppy disk, install the Toolkit first.
- goto end
- :Start
- cls
- echo
- echo Anti-Virus Toolkit Rescue Disk
- echo
- echo
- echo A Rescue Disk is very useful for repairing damage caused by viruses.
- echo
- echo This damage can mean that DOS doesn't work properly.
- echo
- echo When removing a virus from your hard disk it is much safer to boot
- echo your computer from a rescue disk.
- echo
- echo To create a rescue disk, you will need a formatted DOS system disk.
- echo
- echo ┌──────────────────────────────────────────────────────────────────────┐
- echo │ If you need drivers to access your hard disk (such as for STACKER, │
- echo │ SUPERSTOR, or some SCSI drives) you will need to copy these drivers │
- echo │ across, and create an appropriate CONFIG.SYS. │
- echo └──────────────────────────────────────────────────────────────────────┘
- echo
- echo The disk should be made write enabled, so that parts of the Anti-Virus
- echo Toolkit can be copied to it. It will then be scanned for viruses.
- echo
- :getkey
- echo Do you have a suitable disk in drive A: y/n ?
- echo
- TKUTIL RetKey /nm /nc /silent
- IF ERRORLEVEL=90 GOTO WrongKey
- IF ERRORLEVEL=89 GOTO make
- IF ERRORLEVEL=79 GOTO Wrongkey
- IF ERRORLEVEL=78 GOTO nodisk
- Goto WrongKey
- :make
- echo
- echo Please wait while a rescue disk is created...
- COPY CLEANPAR.EXE A: >nul
- if not exist a:\cleanpar.exe goto NoRoom
- COPY FINDVIRU.EXE A: >nul
- if not exist a:\findviru.exe goto NoRoom
- COPY MEM.DRV A: >nul
- if not exist a:\mem.drv goto NoRoom
- COPY GUARDMEM.COM A: >nul
- if not exist a:\guardmem.com goto NoRoom
- COPY QFV*.DRV A: >nul
- if not exist a:\qfv*.drv goto NoRoom
- COPY TKUTIL.EXE A: >nul
- if not exist a:\tkutil.exe goto NoRoom
- COPY RESCUE.INF A:AUTOEXEC.BAT >nul
- if not exist a:\autoexec.bat goto NoRoom
- echo
- echo Please wait while rescue disk is scanned for viruses
- FINDVIRU /D=A /oneonly
- TKUTIL CPU /nm /nc /silent
- IF ERRORLEVEL=2 GOTO 286
- IF ERRORLEVEL=1 GOTO 86
- :286
- A:CLEANPAR /AT /B=A:\BUPART.CPB
- if errorlevel = 2 goto Error1
-
- if not exist a:\bupart.cpb goto NoRoom
- GOTO Finished
- :86
- CLEANPAR /B=A:\BUPART.CPB
- if errorlevel = 2 goto Error1
-
- if not exist a:\bupart.cpb goto NoRoom
- CLS
- :finished
- echo
- echo The Rescue Disk has been created
- GOTO end
- :NoRoom
- echo The Rescue Disk was NOT created. Not enough disk space.
- goto end
- :error1
- echo The Rescue Disk was NOT created.
- goto end
- :WrongKey
- echo
- echo Must answer 'y' or 'n', please try again
- goto GetKey
- :nodisk
- echo
- echo You should create a system disk with the command FORMAT A: /S
- echo If you need drivers to access your hard disk (such as for STACKER,
- echo SUPERSTOR, or some SCSI drives) please remember to copy these
- echo drivers across, and create an appropriate CONFIG.SYS.
- :end
-