Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding File Types Using Filesystem's Findfirst & FindNext Methods

Status
Not open for further replies.

PDX79

Programmer
Jun 16, 2015
1
AU
Hi All,
I'm Using Corel Paradox 9 under Windows 7 x64

I have Created a FileLister App which allows me to Select a Directory (FileBrowserEx) and iterate
through all sub Directories to find the files defined in the Filespec (File type Search Pattern) and add them
to a table.

The only problem I Have is, I can only get it to work with one Filetype at a time - eg *.mov"!

If I try setting the filespec to say "*.mov, *.Flv, *.mp4" etc - It finds Nothing (there is files in the specified Dir with these file extension's)! I have also tried to Pass "*.Mov; *.Flv; *.mp4" & "*.mov|*.flv" etc etc.

I can get by using *.* and deleting the unwanted Names & path's etc, but surely there is away to specify a search pattern with more than one file type - eg Filebrowser Constants allow fbGraphics Constant with 3 or 4
file extension's.

Would love to hear from anyone with a solution and thanks in advance

PDX79


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top