ExamineDirectory pattern matching

Everything else that doesn't fall into one of the other PB categories.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by tinman.

Hi all,

Couple of hopefully small questions:

1) Are the directories "." and ".." really part of the filesystem under Windows? They get reported by ExamineDirectory with a pattern of "*.*", it just seemed a little weird (I thought they were just symbolic names to mean current directory and parent directory).

2) Anyone got a document that explains how to construct *proper* wildcards for Windows? The Win32 help file (FindFirstFile_()) and Google turned out to be useless. By proper I mean something like searching for multiple extensions (e.g. "*.htm|*.chm", except that doesn't work :) or anything more flexible than just * and ? by themselves.

Thanks.

Update: I also found that the line 'If ExamineDirectory(0, pathname, "*.htm")' matches files with .html extensions. Does Windows perform pattern matching against both long and short names at the same time?

--
It's not minimalist - I'm increasing efficiency by reducing input effort.
(Win98first ed. + SP1, PB3.40)