home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 August / PCWorld_2000-08_cd.bin / Software / TemaCD / rxdos / makeboot.bat < prev    next >
DOS Batch File  |  2000-07-02  |  1KB  |  76 lines

  1. @echo off
  2. echo .
  3. echo .
  4. echo . create an RxDOS boot floppy 
  5. echo . ------------------------------------------
  6. echo .
  7.  
  8. if %1x==x goto Help
  9. if %1==h goto Help
  10. if %1==help goto Help
  11. if %1==-h goto Help
  12. if %1==-help goto Help
  13. if %1==? goto Help
  14.  
  15. if %1==a: goto GoMake
  16. if %1==A: goto GoMake
  17. if %1==b: goto GoMake
  18. if %1==B: goto GoMake
  19. goto Bad_Parameter
  20.  
  21. :GoMake
  22. if not exist rxdosbio.sys goto Cant_Copy
  23. if not exist rxdos.sys goto Cant_Copy
  24. if not exist rxdoscmd.exe goto Cant_Copy
  25.  
  26. echo do you want to write to disk %1 ?
  27. echo (control-C to abort)
  28. pause 
  29.  
  30. dir/w %1
  31. echo .
  32. echo . Disk in drive %1: should not have any files
  33. echo . and should be formatted.  This above directory 
  34. echo . will help you decide whether you want to erase 
  35. echo . all files.
  36. echo . 
  37. echo . If there are any files you must delete them.
  38. echo . continue ?
  39. echo (control-C to abort)
  40. pause 
  41.  
  42. echo .
  43. echo . rxd_boot first places a boot program on the boot sector.
  44. rxd_boot %1
  45.  
  46. echo .
  47. echo . 
  48. copy rxdosbio.sys %1
  49. copy rxdos.sys %1
  50. copy rxdoscmd.exe %1
  51.  
  52. echo . copy completed.
  53. dir/w %1
  54. goto Done
  55.  
  56. :Cant_Copy
  57. echo .
  58. echo . Could not find one or more of these files:
  59. echo .   rxdosbio.sys, rxdos.sys, rxdoscmd.exe
  60. echo .
  61. echo . (you must run makeboot from the rxdos files directory)
  62. goto Done
  63.  
  64. :Bad_Parameter
  65. echo .
  66. echo . Bad parameter  '%1'
  67. echo .
  68.  
  69. :Help
  70. echo . Help info:
  71. echo .
  72. echo . makeboot drive:
  73. echo .
  74.  
  75. :Done
  76.