home *** CD-ROM | disk | FTP | other *** search
/ host-198-236-40-254.wlwv.k12.or.us / host-198-236-40-254.wlwv.k12.or.us.tar / host-198-236-40-254.wlwv.k12.or.us / tsv / BareMetalInstall.iso / make_iso.bat < prev    next >
DOS Batch File  |  2013-12-03  |  873b  |  33 lines

  1. @ECHO OFF
  2. REM  ----------------------------------------------------
  3. REM  Batch file to create bootable ISO in Windows
  4. REM  usage: make_iso.bat c:\new-slax.iso
  5. REM  author: Tomas M. <http://www.linux-live.org>
  6. REM  ----------------------------------------------------
  7.  
  8. if "%1"=="" goto error1
  9.  
  10. set CDLABEL=SLAX
  11.  
  12. REM  isolinux.bin is changed during the ISO creation,
  13. REM  so we need to restore it from backup.
  14. copy /Y boot\isolinux.bi_ boot\isolinux.bin
  15. if not "%errorlevel%"=="0" goto error2
  16.  
  17. tools\WIN\mkisofs.exe @tools\WIN\config -o "%1" -A "%CDLABEL%" -V "%CDLABEL%" .
  18. goto theend
  19.  
  20. :error1
  21. echo A parameter is required - target ISO file.
  22. echo Example: %0 c:\target.iso
  23. goto theend
  24.  
  25. :error2
  26. echo Can't recreate isolinux.bin, make sure your current directory is writable!
  27. goto theend
  28.  
  29. :theend
  30. echo.
  31. echo New ISO should be created now.
  32. pause
  33.