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

FindFirstFile wildcards?

Status
Not open for further replies.

joakley

Technical User
Joined
Feb 8, 2002
Messages
3
Location
US
Hi,

I'd like to use FindFirstFile to return a HANDLE to a list of files that have an extension *.abc where a,b and c are i the range 0-9. I think that I can only use the * and ? wildcards when calling the function, eg:
hFind_klarf = FindFirstFile( "*.???", &dataFind);

Does anyone know of a clever work around? It would be really appreciated. It would be great to use ranges with this function, or even just the "#" symbol.

Thanks in advance,

Jonathan.

jonathan.oakley@alumni.ethz.ch
 
I don't think there's another way to do this, as the FindFirstFile depends on the filesystem wildcards (*, ?). So you can't pass it a regular expression, or anything. Which, IMO, would be a nice thing to have.

Chip H.
 
Thanks for the response Chip. It's like I thought. So I guess I'll have to go for the exhaustive work around.

Cheers,

Jonathan.
 
Status
Not open for further replies.

Similar threads

Replies
5
Views
102

Part and Inventory Search

Sponsor

Back
Top