#1 Burning Software

It is currently Thu Dec 19, 2024 7:21 am

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: AddFolder Usage OCX - Issue creating disc with multi-tiers
PostPosted: Tue Aug 07, 2007 4:44 pm 
Offline

Joined: Fri Sep 29, 2006 3:18 pm
Posts: 8
Friends-

I'm having some issues recreating the correct folder structure on DVD from the hard drive. I've created an disc-spanning tool. Here's the hard drive:

d:\
--folder1 (small)
--folder2 (small)
--folder3 (huge - "My Music" and won't fit on one DVD)

Two DVDs are incorrectly created like:

DVD1
--folder1
--folder2
--ABBA (missing 'My Music' because I'm only adding the "ABBA" folder and not the parent folder "My Music\ABBA")
--Ben Folds - same issue as above

DVD2 - same issue as above
--Elton John
--and so one

My software is smart enough to slice up "My Music", but I'm not able to recreate the parent "My Music" folder on the DVDs. When creating nodes, I'm setting NAME = "My Music\ABBA" and FullName = "D:\My Music\ABBA".

Loops on each folder:
StarBurn.CNode Node = JolietImage.Root.AddFolder(name, dir.FullName);

I understand that I'm flattening the hard drive's folder structure by losing the "My Music", but what is the easiest way of retaining that heirarchy?


Top
 Profile  
 
 Post subject: Re: AddFolder Usage OCX - Issue creating disc with multi-tie
PostPosted: Thu Aug 09, 2007 8:49 am 
Offline

Joined: Fri Jan 26, 2007 4:31 pm
Posts: 452
craig wrote:
Friends-

I'm having some issues recreating the correct folder structure on DVD from the hard drive. I've created an disc-spanning tool. Here's the hard drive:

d:\
--folder1 (small)
--folder2 (small)
--folder3 (huge - "My Music" and won't fit on one DVD)

Two DVDs are incorrectly created like:

DVD1
--folder1
--folder2
--ABBA (missing 'My Music' because I'm only adding the "ABBA" folder and not the parent folder "My Music\ABBA")
--Ben Folds - same issue as above

DVD2 - same issue as above
--Elton John
--and so one

My software is smart enough to slice up "My Music", but I'm not able to recreate the parent "My Music" folder on the DVDs. When creating nodes, I'm setting NAME = "My Music\ABBA" and FullName = "D:\My Music\ABBA".

Loops on each folder:
StarBurn.CNode Node = JolietImage.Root.AddFolder(name, dir.FullName);

I understand that I'm flattening the hard drive's folder structure by losing the "My Music", but what is the easiest way of retaining that heirarchy?


Hello,

If I have got correct, you want to create to DVD with next content:

DVD1:
--folder1
--folder2
--My Music\ABBA
--My Music\Ben Folds

DVD2 - same issue as above
--My Music\Elton John
--My Music\and so one

for this you must get root node and create new subfolder "My Music",
after that you can add folders(ABBB, Ben Folds, ...) in this("My Music") node.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 09, 2007 12:44 pm 
Offline

Joined: Fri Sep 29, 2006 3:18 pm
Posts: 8
Thanks for the reply-

Your assumptions are correct. The documentation wasn't helpful explaining creation of tiers.

How do I create an empty subfolder "My music" without using the "addFolder" which inherently attaches the subs?

The OCX CNode documentation looks to be formatted incorrectly:

AbsoluteName Return long file name in the image
AddFile This is AddFile, a member of class INode.
AddFolder Adds single file
Attributes Return date and time of the node
CreateNewFolder Adds subfolder with all its content
DateTime Creates new subfolder
FileSizeInBytes Return absolute file name
FileSystemImage Removes node from file system
FirstKid Return next kid
ImageLongName
ImageShortName Return attributes of node in the image
NextKid Return filesystem image object
Parent Return first kid
Remove Return node size in bytes


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 10, 2007 7:16 am 
Offline

Joined: Fri Jan 26, 2007 4:31 pm
Posts: 452
craig wrote:
Thanks for the reply-

Your assumptions are correct. The documentation wasn't helpful explaining creation of tiers.

How do I create an empty subfolder "My music" without using the "addFolder" which inherently attaches the subs?

The OCX CNode documentation looks to be formatted incorrectly:

AbsoluteName Return long file name in the image
AddFile This is AddFile, a member of class INode.
AddFolder Adds single file
Attributes Return date and time of the node
CreateNewFolder Adds subfolder with all its content
DateTime Creates new subfolder
FileSizeInBytes Return absolute file name
FileSystemImage Removes node from file system
FirstKid Return next kid
ImageLongName
ImageShortName Return attributes of node in the image
NextKid Return filesystem image object
Parent Return first kid
Remove Return node size in bytes


Yes, it's our inexcusable omission in this release.
You can use CreateNewFolder(..) for new folder creation.
You can get correct help by the link:



Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 10, 2007 6:46 pm 
Offline

Joined: Fri Sep 29, 2006 3:18 pm
Posts: 8
Sadly, I can't determine how the 'CNode createNewFolder' & 'CNode AddFolder' work together.

I've added my notes within the test code below.
Code:
ArrayList dirs = new ArrayList();
dirs.Add(new DirectoryInfo(@"D:\music\Elton John"));
dirs.Add(new DirectoryInfo(@"D:\music\John Denver"));
dirs.Add(new DirectoryInfo(@"D:\music\Various Artists\ESPN Jock Jams")); //I need Various Artists and ESPN Jock Jams folders

foreach (DirectoryInfo dir in dirs)
{
   StarBurn.CJolietImage JolietImage = new StarBurn.CJolietImage();
   StarBurn.CNode rootNode = JolietImage.Root.AddFolder(dir.Name, dir.FullName); //this is the ESPN Jock Jams folder - HOW AND WHEN DO I ADD THE VARIOUS ARTISTS?  createNewFolder returns a CNode how and where is that used?
   foreach (DirectoryInfo dir in dirs)
   {
      StarBurn.CJolietImage JolietImage = new StarBurn.CJolietImage();
      StarBurn.CNode rootNode = JolietImage.Root.AddFolder(dir.Name, dir.FullName);

      if (dir.Parent.FullName == disk.getDiskRoot())
      {
         DebugPrint("This folder is a folder within the root - not adding any parents");
      }
      else
      {
         DebugPrint("The folder's parent does match the disc's root.  Adding folder..");
         //HERE'S WHERE THE CREATENEWFOLDER CODE SHOULD GO
         rootNode.CreateNewFolder(dir.Parent.Name);//VARIOUS ARTISTS
      }

   }



Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 10, 2007 8:43 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
Andrew will write a sample (or modify existing one) to do what you want. Either tomorrow or on Monday.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 10, 2007 9:04 pm 
Offline

Joined: Fri Sep 29, 2006 3:18 pm
Posts: 8
If he could explain the CNode CreateNewFolder & AddFolder usage through editing my code that would be more than perfect!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 13, 2007 12:03 pm 
Offline

Joined: Fri Jan 26, 2007 4:31 pm
Posts: 452
craig wrote:
If he could explain the CNode CreateNewFolder & AddFolder usage through editing my code that would be more than perfect!


Hello,

There is code sample which create next tree

\
---Music
---------A-ha(some subfolder and files)
---------Bryan Adams(some subfolder and files)
---------Brat2(some subfolder and files)
---------Tango_Roxanne.mp3(single file)

Code:
            StarBurn.CJolietImage JolietImage = new StarBurn.CJolietImage();
            StarBurn.CNode NodeMusic = JolietImage.Root.CreateNewFolder("Music");
            NodeMusic.AddFolder("A-Ha","C:\\Music\\A-Ha");
            NodeMusic.AddFolder("Bryan Adams","C:\\Music\\Bryan Adams");
            NodeMusic.AddFolder("Brat2","C:\\Music\\Brat2");
            NodeMusic.AddFile("Tango_Roxanne.mp3","C:\\Music\\19-El_Tango_De_Roxanne.mp3");            

            JolietImage.Build((uint)l_DiscInfo.NextWritableAddress, "Test", "");   


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 32 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group