|
Searching for Files
An application can search the current directory for all filenames that match a
given pattern by using the FindFirstFile, FindFirstFileEx, FindNextFile, and FindClose functions. The pattern must be a valid filename and can include wildcard
characters.
The FindFirstFile and FindFirstFileEx functions create handles that FindNextFile uses to search for other files with the same pattern. All functions return
information about the file that was found. This information includes the
filename, size, attributes, and time.
The FindFirstFileEx function also allows an application to search for files based on additional
search criteria. The function can limit searches to device names or directory
names.
The FindClose function destroys handles created by FindFirstFile and FindFirstFileEx.
An application can search for a single file on a specific path by using the SearchPath function.
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
More Online Helps
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|