Rocket Division Software http://www.starburnsoftware.com/forum/ |
|
Adding files to Disc - StarBurnX http://www.starburnsoftware.com/forum/starburn-sdk-f3/adding-files-disc-starburnx-t1750.html |
Page 1 of 1 |
Author: | Lloyd Quenby [ Thu Jan 15, 2009 3:47 pm ] |
Post subject: | Adding files to Disc - StarBurnX |
I need to be able to a specified folder to the disc which i can do, but i also need to be able to create a new directory and then add more folders and files to this new directory. I have looked through the DataBurner sample project, but do not know how to do this. Can someone please help. I am using vb.net Lloyd **sample code** 'Initalise Dim m_dataBurner As RocketDivision.StarBurnX.DataBurner = New RocketDivision.StarBurnX.DataBurnerClass 'Add folders in root dir m_dataBurner.AddDirectory(FolderToBurn) 'Add new folder m_dataBurner.CreateFolder("NewStuff") |
Author: | dima (staff) [ Thu Jan 15, 2009 5:35 pm ] |
Post subject: | |
Hello, Lloyd, 1) Function AddDirectory (CreateFolder) returns the IDataFolder object. If you wish to add files/folders into added (created) directory you should call the AddDirectory (CreateFolder) method on this IDataFolder object. ' Create new root folder dim newFolder as IDataFolder set newFolder = m_dataBurner.CreateFolder("NewStuff") ' Append sub items ... newFolder.CreateFolder("NewStuff2") newFolder.AddDirectory("NewStuff2") etc... 2) If you wish to add a folder to the folder which is present somewhere in the StarBurnX tree you should find the IDataFolder object which is linked with existing folder. The IDataFolder interface provides the method GetFileObject. Dim parentFolder As IDataFolder Dim objSelectedItem As IDataFile ' Get a parent folder for a removed file parentFolder = m_dataBurner.GetFileObject("\Folder1\Folder2\") ' Get a file object wich will be removed objSelectedItem = dataBurner.GetFileObject("\Folder1\Folder2\File1.test") Regards, Dmitry Bortsov Rocket Division Software |
Author: | Lloyd Quenby [ Thu Jan 15, 2009 6:51 pm ] |
Post subject: | |
Excellent, thats just what i needed. Easy when you know how Thanks |
Author: | anton (staff) [ Thu Jan 15, 2009 7:49 pm ] |
Post subject: | |
Please keep us updated if you'd have any issues. Lloyd Quenby wrote: Excellent, thats just what i needed.
Easy when you know how Thanks |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |