home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / DOSBOO.ZIP / SYS.BAT < prev   
DOS Batch File  |  1992-06-06  |  1KB  |  52 lines

  1. @echo off
  2. echo SYS
  3. echo SYS will make an OS/2 formatted floppy bootable with DOS.
  4. echo SYS expects DOS system files and boot sector in the current directory.
  5. echo SYS requires that attrib.exe and debug.exe be in your path.
  6. if "%1" == "A:" goto ok
  7. if "%1" == "a:" goto ok
  8. if "%1" == "B:" goto ok
  9. if "%1" == "b:" goto ok
  10. echo usage: SYS drive:, drive is A or B (include colon)
  11. goto end
  12. :ok
  13. echo Please have a FORMATTED destination floppy in drive %1 or press ^C now.
  14. pause
  15. if not exist io.sys goto IBM
  16. copy io.sys %1
  17. copy msdos.sys %1
  18. attrib +r +h +s %1io.sys
  19. attrib +r +h +s %1msdos.sys
  20. goto allok
  21. :IBM
  22. if not exist ibmbio.com goto badness
  23. copy ibmbio.com %1
  24. copy ibmdos.com %1
  25. attrib +r +h +s %1ibmbio.com
  26. attrib +r +h +s %1ibmdos.com
  27. :allok
  28. copy command.com %1
  29. if "%1" == "A:" goto a
  30. if "%1" == "a:" goto a
  31. if "%1" == "B:" goto b
  32. if "%1" == "b:" goto b
  33. :a
  34. echo l 300 0 0 1 > sys.tmp
  35. echo m cs:30b 335 cs:10b >> sys.tmp
  36. echo w 100 0 0 1 >> sys.tmp
  37. goto c
  38. :b
  39. echo l 300 1 0 1 > sys.tmp
  40. echo m cs:30b 335 cs:10b >> sys.tmp
  41. echo w 100 1 0 1 >> sys.tmp
  42. :c
  43. echo q >> sys.tmp
  44. debug boot.rec < sys.tmp > nul:
  45. del sys.tmp
  46. echo Your floppy in drive %1 should now be bootable with DOS.
  47. goto end
  48. :badness
  49. echo There are no system files in this directory.
  50. echo Please change to the directory that contains your DOS snapshot.
  51. :end
  52.