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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Filter Multiple Extensions 1

Status
Not open for further replies.

Bubbler

IS-IT--Management
Dec 14, 2003
135
US
This is driving me crazy, I have a listbox displaying only lnk files in a directory and am filtering them like this:

Code:
ListDir App.Path & "\app", "*.lnk

What I can't seem to get right is to allow lnk and exe files to be shown :-(
 

Either use a loop for each file type you want to show or use a hidden filelistbox and set its pattern then enumerate through it.

Good Luck

 

Or one loop to list all files and discard the ones you don't want.

Good Luck

 
Thanks vb5prgrmr, that did it! SOmetimes the simple approach...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top