home *** CD-ROM | disk | FTP | other *** search
/ Classic Fond 1 / ClassicFond01.iso / role-pla / legacy.zip / MAKEBOOT.BAT < prev    next >
DOS Batch File  |  1993-08-24  |  3KB  |  77 lines

  1. ::::::::::::::::::::::::::::::::::::::::::
  2. :::: The Legacy Boot Disk Maker ::::
  3. ::::::::::::::::::::::::::::::::::::::::::
  4. @echo off
  5. :::::::::::::::::::::::::::::::::::::::::::
  6. :OkContinue
  7. echo 
  8. echo ======================================
  9. echo You are about to format a floppy disk
  10. echo in drive A !  Make sure this is a spare
  11. echo disk and not one of your original 
  12. echo Legacy disks. 
  13. echo ======================================
  14. :::::::::::::::::::::::::::::::::::::::::::
  15. if not exist c:\dos\format.exe goto FSK
  16. c:\dos\format A: /V:LegacyBoot /s /u 
  17. if errorlevel 5 goto FormatError
  18. if errorlevel 4 c:\dos\format A: /V:LegacyBoot /s /u /F:720
  19. if errorlevel 3 goto FormatError
  20. goto OKformat
  21. :::::::::::::::::::::::::::::::::::::::::::
  22. :FSK
  23. format A: /V:LegacyBoot /s /u 
  24. if errorlevel 5 goto FormatError
  25. if errorlevel 4 format A: /V:LegacyBoot /s /u /F:720
  26. if errorlevel 3 goto FormatError
  27. :::::::::::::::::::::::::::::::::::::::::::
  28. :OkFormat
  29. echo Creating Startup Files..
  30. echo @echo off > A:\autoexec.bat
  31. echo @echo The Legacy Boot Disk >> A:\autoexec.bat
  32. echo @echo -------------------------- >> A:\autoexec.bat
  33. echo PROMPT=$p$g>> A:\autoexec.bat
  34. PATH >> A:\autoexec.bat
  35. echo DEVICE=C:\DOS\HIMEM.SYS     >  A:\config.sys
  36. rem 768 is about ok for a 2MB machine, give the rest to SMARTDRV
  37. echo DEVICE=C:\DOS\EMM386.EXE 768 RAM >> A:\config.sys
  38. echo DOS=HIGH,UMB                >> A:\config.sys
  39. echo BUFFERS=20                  >> A:\config.sys
  40. echo FILES=40                    >> A:\config.sys
  41. echo DEVICEHIGH=C:\DOS\SMARTDRV.SYS 256      >> A:\config.sys
  42. :::::::::::::::::::::::::::::::::::::::::::
  43. :Mouse
  44. if not exist c:\dos\find.exe goto Mouse2
  45. type c:\config.sys|c:\dos\find/i "mouse"
  46. type c:\config.sys|c:\dos\find/i "mouse" >> A:\config.sys
  47. type c:\autoexec.bat|c:\dos\find/i "mouse"
  48. type c:\autoexec.bat|c:\dos\find/i "mouse" >> A:\autoexec.bat
  49. goto OkBootMade
  50. :::::::::::::::::::::::::::::::::::::::::::
  51. :Mouse2
  52. type c:\config.sys|find/i "mouse"
  53. type c:\config.sys|find/i "mouse" >> A:\config.sys
  54. type c:\autoexec.bat|find/i "mouse"
  55. type c:\autoexec.bat|find/i "mouse" >> A:\autoexec.bat
  56. :::::::::::::::::::::::::::::::::::::::::::
  57. :OkBootMade
  58. echo Copied from your existing system files
  59. :Now get the directory that bootmake has
  60. :been run from to determine auto-boot info.
  61. cd1
  62. type t.1 >> A:\autoexec.bat
  63. echo @echo Loading The Legacy .. please wait >> A:\autoexec.bat
  64. echo legacy >> A:\autoexec.bat
  65. del t.1
  66. :::::::::::::::::::::::::::::::::::::::::::
  67. echo.
  68. echo The Legacy Boot Disk has been created
  69. echo Press CTRL ALT DEL to reboot machine...
  70. goto exit
  71. :::::::::::::::::::::::::::::::::::::::::::
  72. :FormatError
  73. echo Boot Disk has not been made..
  74. :::::::::::::::::::::::::::::::::::::::::::
  75. :exit
  76.  
  77.