[python-win32] burning dvds

Carl Karsten carl at personnelware.com
Mon Oct 1 20:30:24 CEST 2007


Friend is trying to replace an active-x control with some calls to 'native' 
windows stuff for backing up data to a multi-session CD or DVD.

If anyone here has some nifty python code that does something similar, it might 
help.

In case it matters, Here are some references he is looking at:
http://msdn2.microsoft.com/en-us/library/aa366443.aspx

And the VFP code he is trying to use that is failing:

oDiscMaster2 = CREATEOBJECT("IMAPI2.MsftDiscMaster2")
oDiscRecorder2 = CreateObject("IMAPI2.MsftDiscRecorder2")
oFileSystemImage = CREATEOBJECT("IMAPI2FS.MsftFileSystemImage")
oDiscFormat2Data = CREATEOBJECT("IMAPI2.MsftDiscFormat2Data")
oDiscRecorder2.InitializeDiscRecorder(oDiscMaster2.Item(0))
oDiscFormat2Data.Recorder = oDiscRecorder2
oFileSystemImage.FreeMediaBlocks = oDiscFormat2Data.FreeSectorsOnMedia
IF oDiscFormat2Data.NextWritableAddress > 0
    oFileSystemImage.MultisessionInterfaces = 
oDiscFormat2Data.MultisessionInterfaces
    oFileSystemImage.ImportFileSystem()
ENDIF

Carl K


More information about the python-win32 mailing list