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.