home *** CD-ROM | disk | FTP | other *** search
/ terabyteunlimited.com / 2014.06.terabyteunlimited.com.tar / terabyteunlimited.com / obsolete / BOOTITDD.ZIP / BUILD.BAT < prev    next >
DOS Batch File  |  1999-02-14  |  1KB  |  58 lines

  1. @echo off
  2. cls
  3. echo ═══════════════════════════════════════════════════
  4. echo  BootIt Direct - Creation of Installation Diskette
  5. echo ═══════════════════════════════════════════════════
  6. echo.
  7. for %%i in (A: a: B: b:) do if %1.==%%i. goto okay
  8. if %1.==. build a:
  9. echo Usage: build a: or build b:
  10. goto end
  11. :okay
  12. if exist bootmnud goto okay2
  13. echo You must be in the directory you extracted BootIt Direct to.
  14. goto end
  15. :okay2
  16. echo If you are updating BootIt Direct, insert your existing installation
  17. echo diskette otherwise insert a diskette to be formatted.
  18. echo.
  19. echo To abort this process Press Ctrl-C and terminate the batch job.
  20. echo.
  21. pause
  22. echo.
  23. if exist %1\bootitsv.mbr goto update
  24. if exist %1\command.com goto update
  25. echo Creating System Diskette...
  26. format %1 /q/s
  27. if exist %1\command.com goto update
  28. format %1 /s
  29. if exist %1\command.com goto update
  30. echo.
  31. echo Unable to create a system diskette.  You can create a system
  32. echo diskette yourself by using the SYS %1 command or by formatting
  33. echo a diskette with the /S switch.
  34. echo.
  35. goto end
  36. :update
  37. echo Copying files to %1
  38. echo.
  39. echo Please Wait ...
  40. cd %1\
  41. copy autoexec %1\autoexec.bat >nul
  42. copy install.exe %1 >nul
  43. copy apid %1 >nul
  44. copy mbrlite %1 >nul
  45. copy bootmnud %1 >nul
  46. copy bootitd.exe %1 >nul
  47. copy pdisk.exe %1 >nul
  48. echo.
  49. echo Creation of Installation Diskette Complete!
  50. echo.
  51. goto end
  52. :bad
  53. echo.
  54. echo Creation of Installation Diskette Failed!
  55. echo.
  56. :end
  57. pause
  58.