Searching directory structure for files
I would have a directory structure like this:
-Root
----Backups
------------SystemDB-11-11-04-11:05.mdb
------------SystemDB-12-11-04-11:05.mdb
------------SystemDB-13-11-04-11:05.mdb
------------SystemDB-14-11-04-11:05.mdb
------------SystemDB-15-11-04-11:05.mdb
these folders are created to store a backup of a database everyday, then the database is copied into the folder.
How could i search the BACKUPS folder for sub-directories containing a database (*.mdb) file starting with the string 'SystemDB'?
Can i use the DIR function for this or is it too limited for this check?
thanks
Re: Searching directory structure for files
I would take a look at the FindFirstFile and FindNextFile API calls.