home *** CD-ROM | disk | FTP | other *** search
/ CD-ROM Magazine 23 / CDRmag23-0.iso / INDISP / Tbav / tbdos707 / MAKERESC.BAT < prev    next >
DOS Batch File  |  1997-01-10  |  2KB  |  70 lines

  1. @echo off
  2. echo off
  3. if %1X==X goto help1
  4. if not exist %1\Command.Com goto help2
  5. if exist TbScan.Exe goto tbavdir
  6. cd \tbav
  7. if not exist TbScan.Exe goto help3
  8. :tbavdir
  9. echo Copying TBAV utilities to drive %1, please wait...
  10. Copy TBAV.Exe %1 >nul
  11. Copy TBAV.Lng %1 >nul
  12. if exist TBAV.KEY Copy TBAV.KEY %1 >nul
  13. Copy TbScan.Exe %1 >nul
  14. Copy TbScan16.Exe %1 >nul
  15. Copy TbScan32.Exe %1 >nul
  16. Copy TbScan.Eci %1 >nul
  17. Copy TbScan.Lng %1 >nul
  18. Copy TbScan.Sig %1 >nul
  19. Copy TbDriver.Exe %1 >nul
  20. Copy TbDriver.Lng %1 >nul
  21. Copy TbCheck.Exe %1 >nul
  22. Copy TbClean.Exe %1 >nul
  23. Copy TbUtil.Exe %1 >nul
  24. Copy TbUtil.Lng %1 >nul
  25.  
  26. TbUtil store %1\TbUtil.Dat
  27.  
  28. Echo Files=20 >%1\Config.Sys
  29. Echo Buffers=20 >>%1\Config.Sys
  30. If exist TbDriver.Exe Echo Device=TbDriver.Exe >>%1\Config.Sys
  31. If exist TbCheck.Exe Echo Device=TbCheck.Exe FullCRC >>%1\Config.Sys
  32.  
  33. Echo @echo off >%1\AutoExec.Bat
  34. Echo echo off >>%1\AutoExec.Bat
  35. Echo PATH=A:\ >>%1\AutoExec.Bat
  36. If exist TBAV.EXE Echo TBAV >>%1\AutoExec.Bat
  37. Echo Cls >>%1\AutoExec.Bat
  38. Echo Echo WARNING!!! >>%1\AutoExec.Bat
  39. Echo Echo If you suspect a virus, do NOT execute anything from the hard disk! >>%1\AutoExec.Bat
  40.  
  41. Echo The rescue diskette is almost ready!
  42. Echo TbSetup will now generate the Anti-Vir.Dat file for drive %1
  43. Pause
  44. TbSetup %1
  45.  
  46. CLS
  47. Echo The rescue diskette is now ready.
  48. Echo If you need to copy other utilities to the disk, you can do so now.
  49. Echo If you do so, do not forget to run TbSetup %1 when ready.
  50. Echo.
  51. Echo MAKE SURE THE DISK IN DRIVE %1 IS WRITE PROTECTED!
  52.  
  53. goto end
  54.  
  55. :help1
  56. Echo Please specify the drive which contains the rescue diskette!
  57. goto end
  58.  
  59. :help2
  60. Echo The disk in drive %1 should be bootable. You can make the disk
  61. Echo bootable by using the command: SYS %1
  62. goto end
  63.  
  64. :help3
  65. Echo Can not locate the TBAV utilities.
  66. Echo Please make the directory that contains the TBAV utilities the
  67. Echo current directory!
  68.  
  69. :end
  70.