| |||||||
| Commercial message | |
| | |
|
![]() |
| | Thread Tools |
| | #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 |
| | |
| | #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? |
| | |
| | #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. |
| | |
| | #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 |
| | |
| |
| |
![]() |
| 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 | |
| |
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 |