#1 Burning Software

It is currently Wed Dec 18, 2024 11:11 pm

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Looking for a Delphi Example
PostPosted: Sat Jun 20, 2009 9:20 pm 
Offline

Joined: Mon Jun 15, 2009 6:35 pm
Posts: 28
Is there a simple example, preferably in Delphi, of how to get a list of the files on an existing CD? I'm using ISO9660JolietFileTree. The CD has multiple sessions/tracks. TIA.

Luke


Top
 Profile  
 
 Post subject: Re: Looking for a Delphi Example
PostPosted: Sat Jun 20, 2009 10:46 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
You need to work with Win32 API FindXxx (FindFirstFile/FindNextFile/FindClose) rather then with StarBurn API. Good sample is here:

http://cboard.cprogramming.com/windows- ... tfile.html


Top
 Profile  
 
 Post subject: Re: Looking for a Delphi Example
PostPosted: Sun Jun 21, 2009 3:35 am 
Offline

Joined: Mon Jun 15, 2009 6:35 pm
Posts: 28
Sorry but I don't think I phrased my question appropriately. :oops: I'm still learning the nomenclature. I;m famillar with the windows functions and am using them already. The windows functions only show my files in last session. My CD/DVDs have multiple sessions.

I am writing a backup utility for my application. I zip the database and assorted configuration files into one file which is uniquely named (Example: "MYBACKUP 20090620 104254.zip" The numbers are just the date and time). It is then copied to the CD/DVD and the session is closed. So, overtime the CD has many files in multiple sessions. I need to be able to present that list to user and allow them to restore from any of the files stored on that backup.

Thanks again for your help.

Luke


Top
 Profile  
 
 Post subject: Re: Looking for a Delphi Example
PostPosted: Sun Jun 21, 2009 8:53 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
Oh, I see now... What you need to do is to call ImportTrack( N ) where N is number of session you want to import (you can get N from GetTOCInformation(...) API call). Then you can surf resulting imported tree with GetRoot(...), GetFirstKid(...) and GetNextKid(...). Should be enough :)) BTW, don't forget to destroy your imported tree every time between track-to-track imports!


Top
 Profile  
 
 Post subject: Re: Looking for a Delphi Example
PostPosted: Mon Jun 22, 2009 3:43 pm 
Offline

Joined: Mon Jun 15, 2009 6:35 pm
Posts: 28
Thank you. That is what I was looking for.

However, I am not sure I understand the difference between sessions and Tracks. I see the GetTOCInformation(...) API call gets me both the number of tracks and sessions. You indicated that I should "call ImportTrack( N ) where N is number of session". Is that the session number or the track number? Thanks again.

Luke


Top
 Profile  
 
 Post subject: Re: Looking for a Delphi Example
PostPosted: Mon Jun 22, 2009 3:46 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
For data discs each session = 1 track.


Top
 Profile  
 
 Post subject: Re: Looking for a Delphi Example
PostPosted: Tue Jun 23, 2009 11:30 pm 
Offline

Joined: Mon Jun 15, 2009 6:35 pm
Posts: 28
Thank you.


Top
 Profile  
 
 Post subject: Re: Looking for a Delphi Example
PostPosted: Wed Jun 24, 2009 7:54 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
Good :)


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 38 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group