Go Back   Club CDFreaks - Knowledge is Power > International Chat: Software related > Nero SDK Discussion Forum


Commercial message



Nero SDK Discussion Forum Discuss, NeroCMD SubDirectory at International Chat: Software related forum; Hi, I to select a directory on a CD (or create one). Where I'll put the selected file's. I whant to create or add file's to an ISO-CD. If seen that CreateIsoTree() containes some function to use a SubDir. But it isn't clear to me


Reply
 
Thread Tools
Old 03-05-2004   #1 (permalink)
New on Forum
 
Join Date: May 2004
Posts: 4
NeroCMD SubDirectory

Hi,

I to select a directory on a CD (or create one). Where I'll put the selected file's.

I whant to create or add file's to an ISO-CD. If seen that CreateIsoTree() containes some function to use a SubDir. But it isn't clear to me how to use this.

Regards
Lecter is offline   Reply With Quote
Old 04-05-2004   #2 (permalink)
Nero Developer
 
Join Date: Oct 2003
Posts: 605
Can you please rephrase your question? It is not very clear what is it that you are trying to achieve.
alexp is offline   Reply With Quote
Old 04-05-2004   #3 (permalink)
New on Forum
 
Join Date: May 2004
Posts: 4
I wish to select some file, and put them in a subdirectory on a CD. For example:

Test1.txt
Test2.txt

in subdirectory D:\Text\

Where D is my CD writer.

I wise to extend the NeroCmd with option --sub "Text", so it will create a Directory Text (if it doesn't already exists) and put all files into that directory.

Sorry for my unclearness, I hope this is clear enough.

If I look at the function CreateIsoTree, I think if have to make my adjustment there. But maybe someone has already done this, or can give me a little hand. I think I have to create a NERO_ISO_ITEM as a subdirectory class?
Lecter is offline   Reply With Quote
Old 04-05-2004   #4 (permalink)
Nero Developer
 
Join Date: Oct 2003
Posts: 605
Yes, it is much clearer now... You should actually take a look at GetIsoTrack in IsoTrack.cpp. After the import related if statement and before the for loop you should create a set of NERO_ISO_ITEMs tied to each other and as many of them as there are subdirs in your --sub parameter. If you want to support only one directory, then things get simpler.

For instance, if you specify --sub dir1/dir2/dir3, you should create 3 NERO_ISO_ITEMs and connect them as appropriate so that they form a tree. If you want to be extra careful, you may check if any of these entries already exist in the previously imported session (if any).

Once you have done all this, you should make sure that the CreateIsoItem in the for loop below appends its findings to the end of your tree hierarchy, not the root.
alexp is offline   Reply With Quote
Old 04-05-2004   #5 (permalink)
New on Forum
 
Join Date: May 2004
Posts: 4
Thank Alex,

It works just fine. It's a little jugling with some records, and don't forget to close the session.
Lecter is offline   Reply With Quote
Old 13-07-2004   #6 (permalink)
CD Freaks Rookie
 
Join Date: Jul 2004
Posts: 34
Re: NeroCMD SubDirectory

Can you please post the final code?
thanks....
sajith is offline   Reply With Quote
Old 13-07-2004   #7 (permalink)
New on Forum
 
Join Date: May 2004
Posts: 4
Re: NeroCMD SubDirectory

Sajith,



Here is the most importend part: IsoTrack.cpp GetIsoTrack()
**********************************
for (int i = 0; i < params.GetFileListSize(); i ++)
{
NERO_ISO_ITEM* pItem=NULL;
NERO_ISO_ITEM* pLast;
EXITCODE code;

// Create a tree from the filename supplied.
if(params.GetSubDir()) {
pItem = NeroBuildIsoTreeFromPath(params.GetSubDirPath());
//code = CreateIsoTree (params, params.GetFileList().vect[i], &pItem->nextItem );
pLast = pItem;
while( pLast->subDirFirstItem != NULL ) {
pLast = pLast->subDirFirstItem;
}
code = CreateIsoTree (params, params.GetFileList().vect[i], &pLast->subDirFirstItem );
}
else {
code = CreateIsoTree (params, params.GetFileList().vect[i], &pItem );
}

// If there was a problem creating the tree then delete
// the whole tree that has been created so far and
// return the error code.

if (code != EXITCODE_OK)
{
DeleteIsoItemTree (*ppItem);
*ppItem=NULL;
return code;
}

// Merge the new track with the existing one. The user could
// specify similar paths/content on the command line. We must make
// sure the duplicates are weeded out. If return value is false,
// we need to quit.
//
if (!MergeIsoTrack (params, ppItem, pItem))
{
return EXITCODE_FAILED_TO_CREATE_ISO_TRACK;
}
}

****************************

And you need to add a function to Get and Set SubDir in the params!

Goodluck
Lecter is offline   Reply With Quote
 
Reply


If you can't find where you are looking for, then become a member and get an answer fast! We have thousands of people online every moment of the day to help you! Click here



Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
NeroCmd socram Nero SDK Discussion Forum 2 12-09-2005 17:27
[nerocmd] burning multi session dvd problem with NeroCmd coolhome Nero SDK Discussion Forum 0 21-07-2005 04:11
How to create a subdirectory on cd? Ralph Nero SDK Discussion Forum 3 08-04-2004 05:53
Files into a special subdirectory PeterCD Nero SDK Discussion Forum 3 14-03-2004 09:39
NeroCMD Actual_Actuary Newbie Forum 0 05-11-2003 23:02


All times are GMT +2. The time now is 14:35.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0