Rocket Division Software http://www.starburnsoftware.com/forum/ |
|
Building an image with everything under the directory http://www.starburnsoftware.com/forum/starburn-sdk-f3/building-image-with-everything-under-the-directory-t591.html |
Page 1 of 1 |
Author: | cschmit [ Wed Jan 25, 2006 2:06 am ] |
Post subject: | Building an image with everything under the directory |
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. |
Author: | anton (staff) [ Wed Jan 25, 2006 8:20 am ] |
Post subject: | Re: Building an image with everything under the directory |
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. |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |