#1 Burning Software

It is currently Wed Dec 18, 2024 11:09 pm

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: How to create UDF2 image file from tree?
PostPosted: Fri Jun 19, 2009 10:57 am 
Offline

Joined: Tue Aug 12, 2008 8:37 am
Posts: 36
Hi,

I can create UDF2 image file as the method in MSVC sample ImageBuilder project.
What I want to do is building a file tree as the MSVC sample DataBurner but write it to an UDF2 image file not burning it to a disc.

Could you show me how to do it with the built ISO9660JolietFileTree?
Thanks in advance.
:?
Quey


Top
 Profile  
 
 Post subject: Re: How to create UDF2 image file from tree?
PostPosted: Sat Jun 20, 2009 10:53 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
There's a nice console sample called UDF2BuildImageUnicode. It's absolutely minimalistic set of calls you need to perform to solve your task. Give it a try and let us know if you'd have other questions.


Top
 Profile  
 
 Post subject: Re: How to create UDF2 image file from tree?
PostPosted: Mon Jun 22, 2009 12:49 am 
Offline

Joined: Tue Aug 12, 2008 8:37 am
Posts: 36
I did tried that sample UDF2BuildImageUnicode before I open this topic. And I can build UDF2 image files as expected.
But what I want to do is some little more than that sample.

What I wnat to do is to create a directory tree in the program, and the directories in this tree can be different from the directory tree in the hard drive at any level.

That means specify each directory name or path to each node in the tree is required, not a directory path to map.
I find in the MSVC sample DataBurn is the most thing that close to what I want to do.
It calls StarBurn_ISO9660JolietFileTree_Create(...) to build a tree, and "THIS TREE CAN BE MODIFIED" by oprating the Add, Rename....

And I did not see the methods in sample UDF2BuildImageUnicode can do it this way. As I recognized that the StarBurn_UDF2_DirectoryUnicodeProcessEx(....) can only copy exactly the same tree structure as in the hard drive.

So, is there a way to write the tree built by StarBurn_ISO9660JolietFileTree_Create in to a file?
(Every thing is the same as burn it to a disc in the MSVC sample DataBurn except it is target to a file.)

Best Regards,
Quey


Top
 Profile  
 
 Post subject: Re: How to create UDF2 image file from tree?
PostPosted: Mon Jun 22, 2009 7:45 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
ProcessEx does dirty job for you sucking hard disk content. If you want to do everything on your own use plain File(Directory)Create(Unicode) API calls. You'll be able to do exactly what you need.


Top
 Profile  
 
 Post subject: Re: How to create UDF2 image file from tree?
PostPosted: Tue Jun 23, 2009 3:56 am 
Offline

Joined: Tue Aug 12, 2008 8:37 am
Posts: 36
Thanks, I will do it that way.

Still I think if one can create image file from the tree built by StarBurn_ISO9660JolietFileTree_Create, that will be very convenient and consistent with the burn to disc purpose.

Regards,
Quey


Top
 Profile  
 
 Post subject: Re: How to create UDF2 image file from tree?
PostPosted: Tue Jun 23, 2009 8:47 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
You can burn resulting virtual image to the disc. See UDF2BuildBurnXxx samples.


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 42 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group