Make an ISO file from a Windows script

As part of a build system, you may need to output an ISO file, to later burn to CD or DVD etc.

This can be automated, by using the CDRTools set of Windows applications.

One tool in particular is all you really need: mkisofs.exe

You can download mkisofs.exe here:

http://www.student.tugraz.at/thomas.plank/

USAGE::

Here is an example DOS script to make an ISO file in the %TEMP% location:


SETLOCAL

SET _DEST_ISO_PATH=%TEMP%\test_iso.iso

SET _SOURCE_DIR_FOR_ISO=.

SET _TAG_NAME=MyTestIso1.0

mkisofs.exe -o %_DEST_ISO_PATH% -J -r -v -V '%_TAG_NAME%' %_SOURCE_DIR_FOR_ISO%

DIR %_DEST_ISO_PATH%

Comments