Hi

Following is the way I am reading files now.

theErr = DmGetNextDatabaseByTypeCreator(true,
&state, sysFileTFileStream, 0, latestVer, &card, &currentDB); 
        while (theErr != dmErrCantFind) 
        {
                if (currentDB)
                {
                        /* do something with currentDB */ 
                        /* now get the next DB */ 
                        theErr = DmDatabaseInfo(card, currentDB, nameP,
&attributesP, &versionP,
                                                        &crDateP, &modDateP,
&bckUpDateP,                                                    &modNumP,
&appInfoIDP,
                                                        &sortInfoIDP,
&typeP, &creatorP);
                }
                theErr = DmGetNextDatabaseByTypeCreator(false, &state,
sysFileTFileStream, 0,  
                                                                latestVer,
&card,
&currentDB);
        }


I am also trying to read files from NVFS volume.

Thanks to Michal and Ben
Regards,
Micky

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Michal Seliga
Sent: Monday, November 27, 2006 7:11 PM
To: Palm Developer Forum
Subject: Re: Find Files

you may use loop with DmGetNextDatabaseByTypeCreator to browse all databases
of
type sysFileTFileStream (files you are looking for will be most probably
saved
as file streams, or you may put there 0 to search for every file)

and then get their name using DmDatabaseInfo and compare if it is something
you want


Micky MeNeZeS wrote:
> Hi,
> 
>  
> 
> I want to find the files (*.jpg, *.doc, *.mpeg, *.bmp etc) in Palm's
> internal memory.
> 
>  
> 
> Can you please show me some way to achieve this?
> 
>  
> 
>  
> 
> Thanks and Regards,
> 
>  
> 
> Micky Menezes
> 
>  
> 

-- 
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/



-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to