regular expression in windows file open prompt

eon

2[H]4U
Joined
Oct 11, 2003
Messages
2,218
in this app im using it allows wildcards when selecting a file to open like: *.abc

I'm trying to find a way to open all files of multiple extensions at once. Such as all files of extension abc, efg, and hij. Is there a way to do this in a windows file open prompt? thanks
 

eon

2[H]4U
Joined
Oct 11, 2003
Messages
2,218
but I dont want every file, just a certain set of file extensions. Something like:
*.abc || *.efg || *.xyz
 

pxc

Extremely [H]
Joined
Oct 22, 2000
Messages
33,064
You can try something like "*.abc" "*.def" "*.ghi". The standard dialog allows opening multiple individual files separated by spaces, each file name in quotes. It really depends if the developer(s) coded for that situation, and if they even used the standard dialog.
 

PTNL

Supreme [H]ardness
Joined
Jan 2, 2005
Messages
4,196
If you're using the OpenFileDialog object, then use the Filter property. I'm unsure whether you also want to have single- or multiple-select, but that can also be set in the object's properties. Make sure you set both as needed before opening the dialog.
 

eon

2[H]4U
Joined
Oct 11, 2003
Messages
2,218
@pxc
thanks i ust tried that but looks like it doesnt work in this application.
@PTNL
this isnt a program im developing. Its a app that I use in which I load various files into to process.

but oh well, i can continue doing each filetype manually. This would have just spared me a little time and annoyance
 
Top