Results 1 to 2 of 2

Thread: Searching directory structure for files

  1. #1

    Thread Starter
    Fanatic Member x-ice's Avatar
    Join Date
    Mar 2004
    Location
    UK
    Posts
    671

    Resolved 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
    Last edited by x-ice; Jan 8th, 2005 at 10:16 AM.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Searching directory structure for files

    I would take a look at the FindFirstFile and FindNextFile API calls.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width