Go Back   Club CDFreaks - Knowledge is Power > International Chat: Software related > Nero SDK Discussion Forum


Commercial message



Nero SDK Discussion Forum Discuss, Burning multiple user selectable files to disk at International Chat: Software related forum; I am trying to help someone with an issue or two that they are having with programming the NERO API. I'm fairly new to VB and wonder if someone has a sample app written in a newer flavor of VB that I can take a look at. We are


Reply
 
Thread Tools
Old 25-03-2006   #1 (permalink)
New on Forum
 
Join Date: Mar 2006
Posts: 6
Burning multiple user selectable files to disk

I am trying to help someone with an issue or two that they are having with programming the NERO API. I'm fairly new to VB and wonder if someone has a sample app written in a newer flavor of VB that I can take a look at. We are working in VB 2005.

Our particular problem relates to building the list of files so that nero can then record them to dvd. The process seems to involve instantiating an object reference to NeroFolder and then individual NeroFile. Each individual NeroFile is added to the NeroFolder via the following method: Folder.Files.Add(file). When we attempt to exceute the burn, we don't get any errors and the disk is not recorded.

We are letting the user open a file selection browse dialog to select files to be burned. The list of user selected files is added to a listbox. When the user selects the option to initiate the burn, the selected files from the listbox are the ones we want burned to disk.


Here is a relevant bit of code:


Dim Folder As INeroFolder
Folder = New NEROLib.NeroFolder()

Dim drives As NEROLib.INeroDrives
drives = nero.GetDrives(NEROLib.NERO_MEDIA_TYPE.NERO_MEDIA_DVD_P And NERO_MEDIA_TYPE.NERO_MEDIA_DVD_M)
drive = drives.Item(AvailableDevices.SelectedIndex)

Dim ISOTrack As New NEROLib.NeroISOTrack
ISOTrack = New NEROLib.NeroISOTrack
ISOTrack.Name = "TestTrack"

Dim i As Integer

Dim file As NeroFile

For Each i In List1.SelectedIndices

file = New NeroFile

' List files in the listbox
'MessageBox.Show(List1.Items(i).ToString)

file.Name = List1.Items(i).ToString
file.SourceFilePath = List1.Items(i).ToString
Folder.Files.Add(file)

Next

Folder.Name = "TestFolder"

ISOTrack.BurnOptions = NEROLib.NERO_BURN_OPTIONS.NERO_BURN_OPTION_CREATE_ISO_FS + NEROLib.NERO_BURN_OPTIONS.NERO_BURN_OPTION_USE_JOLIET

drive.BurnIsoAudioCD("TrueView", "TrueView", 0, ISOTrack, Nothing, Nothing, NERO_BURN_FLAGS.NERO_BURN_FLAG_SIMULATE + NERO_BURN_FLAGS.NERO_BURN_FLAG_WRITE, 4, NERO_MEDIA_TYPE.NERO_MEDIA_DVD_P_R + NERO_MEDIA_TYPE.NERO_MEDIA_DVD_P_RW)



Any suggestions or pointers on how to burn a number of user selectable files to disk would be great.

Thanks,

Dan
dthomson is offline   Reply With Quote
Old 26-03-2006   #2 (permalink)
New on Forum
 
Join Date: Mar 2006
Posts: 6
Re: Burning multiple user selectable files to disk

Nevermind, I figured that problem out. It's been a few hours, but I think it was that the files were not being added to the root folder properly
dthomson is offline   Reply With Quote
 
Reply


If you can't find where you are looking for, then become a member and get an answer fast! We have thousands of people online every moment of the day to help you! Click here



Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Making iso disk images with Nero 7 and burning large files over multiple DVDs Dark Lord Nero & InCD 3 18-05-2007 06:02
burning multiple dvd's in one disk okie_man Newbie Forum 5 20-07-2006 11:01
burning multiple authored files mikehende Newbie Forum 4 06-07-2006 00:03
Having problems burning Multiple disk on Nero 6.6 satan on a stick Nero & InCD 0 28-12-2005 00:03
burning multiple files with nerosdk freemantaylor Newbie Forum 0 01-12-2004 00:48


All times are GMT +2. The time now is 22:24.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0