home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / d / ds115.zip / DSINSTAL.BAT < prev    next >
DOS Batch File  |  1991-05-27  |  953b  |  37 lines

  1. echo off
  2. set d1=%1
  3. set d2=%2
  4. if t%d1%==t set d1=a
  5. if t%d2%==t set d2=c
  6. echo drive %d1% drive %d2%
  7. echo Use this installation file only if DISKSECURE is on a floppy disk (A/B)
  8. echo Otherwise install manually (see documentation)
  9. echo DISKSECURE will be installed from drive %d1% to drive %d2%
  10. echo press control-C if incorrect.
  11. pause
  12. %d2%:
  13. cd \
  14. md ds
  15. cd ds
  16. %d1%:
  17. copy *.* %d2%:
  18. %d2%:
  19. echo Do I have permission to add DISKSECURE verification to your
  20. echo AUTOEXEC.BAT file ? (y/n)
  21. ask
  22. if errorlevel 89 if not errorlevel 90 goto addbat
  23. goto next
  24. :addbat
  25. echo The original AUTOEXEC.BAT is being saved as %d2%:\ds\autoexec.ds
  26. copy c:\autoexec.bat autoexec.ds >nul
  27. copy chksec.exe c:\ >nul
  28. copy ds.b+autoexec.ds c:\autoexec.bat >nul
  29. goto dsin
  30. :next
  31. echo It is suggested that the command lines in file DS.B be added to your
  32. echo startup procedure to verify proper operation of DISKSECURE.
  33. :dsin
  34. disksec
  35. :endit
  36. set d1=
  37. set d2=