#1 Burning Software

It is currently Thu Dec 19, 2024 5:18 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Building an image with everything under the directory
PostPosted: Wed Jan 25, 2006 2:06 am 
Offline

Joined: Wed Jan 25, 2006 1:49 am
Posts: 1
I'm looked through the other posts in the forum, but can't seem to find the answer to my question. I'm looking at StarBurn to replace a tool we currently use for ISO creation/burning.

When creating an image, I have something like the following:

D:\Image\File1.txt
D:\Image\File2.txt
D:\Image\Subdir_with_files

I want to create the image so that I end up with things under the Image directory at the root of the image.

F:\File1.txt
F:\File2.txt
F:\Subdir_with_files

When I use *_Add with RootDirectoryAbsolutePathAndName set to "D:\Image" I end up with "F:\Image\File1.txt"(same for other files). Changing RootDirectoryNewName doesn't seem to have any effect. Is there a way with the SDK to strip the "Image" directory from appearing in the image?

Or should I be calling:

*_Add(..., "D:\Image\File1.txt", ...);
*_Add(...,"D:\Image\File2.txt", ...);
*_Add(...,"D:\Image\Subdir_with_files", ...);


Now, on to implementing the burn an ISO part.


Top
 Profile  
 
 Post subject: Re: Building an image with everything under the directory
PostPosted: Wed Jan 25, 2006 8:20 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
When you pass something (like file or directory) to _Add(...) just everything get added *including* this entry itself. If you want to go one level deeper - you need to do parse the folder yourself and do manual calls to _Add(...) adding files and directories inside your virtual root folder one-by-one. Just as you'd suggested.

cschmit wrote:
I'm looked through the other posts in the forum, but can't seem to find the answer to my question. I'm looking at StarBurn to replace a tool we currently use for ISO creation/burning.

When creating an image, I have something like the following:

D:\Image\File1.txt
D:\Image\File2.txt
D:\Image\Subdir_with_files

I want to create the image so that I end up with things under the Image directory at the root of the image.

F:\File1.txt
F:\File2.txt
F:\Subdir_with_files

When I use *_Add with RootDirectoryAbsolutePathAndName set to "D:\Image" I end up with "F:\Image\File1.txt"(same for other files). Changing RootDirectoryNewName doesn't seem to have any effect. Is there a way with the SDK to strip the "Image" directory from appearing in the image?

Or should I be calling:

*_Add(..., "D:\Image\File1.txt", ...);
*_Add(...,"D:\Image\File2.txt", ...);
*_Add(...,"D:\Image\Subdir_with_files", ...);


Now, on to implementing the burn an ISO part.


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 62 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