Jump to content

Burning DVDs - A Partial Answer


Recommended Posts

Questions about using AutoIt to burn DVDs have come up a number

of times in this forum.

The best command line DVD burning program I have found is

growisofs.exe. It is available at

http://fy.chalmers.se/~appro/linux/DVD+RW/tools/win32

A sample command would be

growisofs -dvd-compat -Z e: -r -J --graft-points docs/=c:/docs

-dvd-compat For maximum DVD compatibility.

-Z Set for first burn session to disk.

e: Drive letter of CD burner.

-r Specifies Rock Ridge naming conventions be used.

-J Specifies Joliet extensions be used for long filenames.

growisofs actually calls mkisofs.exe to create the image file, create

the filesystem in it, and populate it with data. mkisofs options can

be appended to the end of the growisofs command:

--graft-points Specifies where the directories are to placed on the CD.

The xxxx/= preceding the directories to be copied means

that the files will be copied to that directory on the

CD. Omitting this will copy the directory's files

directly into the CD's root directory. Quotes are used

if the directory name contains a space.

Implementing this in an AutoIt script to run without a window:

$GraftPnts = "docs/=c:/docs"

$BurnCmd = "growisofs -dvd-compat -Z e: -r -J --graft-points " & $GraftPnts

$BurnOut = Run( $BurnCmd, $BackUpDir, @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD)

Note that the list of graftpoints can be stored in a script file and

read into the $GraftPnts variable. This will save recompiling the

script every time the list changes.

Unfortunately, this does not work under AutoIt. I keep getting an

error message that the file is "in use by another process". My

suspicion is that growisofs's call to mkisofs is somehow tying up the

image file.

Any suggestions would be appreciated.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...