Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 12. Filesystem I/O > Searching for Directories or Files Using Wildcards

Recipe 12.6. Searching for Directories or Files Using Wildcards

12.7.1. Problem

You are attempting to find one or more specific files or directories that might or might not exist within the current file system. The search might need to use wildcard characters in order to widen the search, for example, searching for all usermode dump files in a file system. These files have a .dmp extension.

12.7.2. Solution

There are several methods of obtaining this information. The first three methods return a string array containing the full path of each item. The next three methods return an object that encapsulates a directory, a file, or both.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial