[DUG] FindFirst on a CD drive

Ross Levis ross at stationplaylist.com
Tue Dec 19 17:15:46 NZDT 2006


I wonder if there is a reset command you can send to the drive.  I know 
this was done back in the diskette days for the O/S to reread the 
contents of the diskette, or something like that.

Ross.

----- Original Message ----- 
From: "Phil Middlemiss" <phil at tumonz.co.nz>
To: "NZ Borland Developers Group - Delphi List" <delphi at ns3.123.co.nz>
Sent: Tuesday, December 19, 2006 3:29 PM
Subject: Re: [DUG] FindFirst on a CD drive


The search starts from scratch each time with everything being freed
after each search.>>>
>>> -----Original Message-----
>>> From: delphi-bounces at ns3.123.co.nz
>>> [mailto:delphi-bounces at ns3.123.co.nz] On
>>> Behalf Of Phil Middlemiss
>>> Sent: 19 December 2006 13:24
>>> To: NZ Borland Developers Group - Delphi List
>>> Subject: [DUG] FindFirst on a CD drive
>>>
>>> Hi guys,
>>>
>>> we have a program that copies files from a number of CDs to the hard
>>> drive
>>> and uses FindFirst recursively to see which files are available on
>>> the CD.
>>>
>>> Once it's copied all the files from one CD it asks for the next CD 
>>> and
>>> searches that disc for any files it can copy. This is where it seems
>>> to have
>>> a problem. On my machine (W2k) everything works fine, on another
>>> machine in
>>> the office (XP) it doesn't seem to find any files after the disc has
>>> been
>>> swapped for the next one.
>>>
>>> Could this be Windows caching the CD contents? I tried refreshing
>>> Explorer
>>> to show the actual contents of the second CD (which it did) but the 
>>> app
>>> still couldn't seem to find any files.
>>>
>>> Any ideas what is going on?
>>>
>>> Cheers,
>>> Phil. 



More information about the Delphi mailing list