Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FindFirstFile(Ex) wildcard characters

Tags:

winapi

The Windows API FindFirstFile() and FindFirstFileEx() accept wildcard characters for the path to search, "for example, an asterisk (*) or a question mark (?)". No where can I actually find an explanation of which others (if any) characters it accept, and more importantly what they mean in the context of FindFirstFile.

Can someone please provide an explanation? Thanks.

like image 656
KTC Avatar asked Apr 01 '10 20:04

KTC


1 Answers

There are actually five wildcard characters on Windows (from http://www.osronline.com/showThread.cfm?link=36720):

  • * = "match zero or more characters"
  • ? = "match one character"
  • < = "match zero or more characters using MS-DOS semantics"
  • > = "match one character using MS-DOS semantics"
  • " = "match dot using MS-DOS semantics"
like image 76
nobody Avatar answered Sep 20 '22 15:09

nobody