
544
|
Chapter 13: The ‘My’ Reference
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
• MoveFile Method
• OpenTextFieldParser Method
• OpenTextFileReader Method
• OpenTextFileWriter Method
• ReadAllBytes Method
• ReadAllText Method
• RenameDirectory Method
• RenameFile Method
• SpecialDirectories Object
• WriteAllBytes Method
• WriteAllText Method
Related Framework Entries
• Microsoft.VisualBasic.FileIO.FileSystem
• Microsoft.VisualBasic.MyServices.FileSystemProxy
See Also
Computer Object, SpecialDirectories Object
FindInFiles Method
Location
My.Computer.FileSystem.FindInFiles
Syntax
Dim result As System.Collections.ObjectModel.ReadOnlyCollection( _
Of String) = My.Computer.FileSystem.FindInFiles(path, _
containsText, ignoreCase, searchType[, wildcard])
path (required; String)
The path to the directory that includes the files to search.
containsText (required; String)
The text to search for in each file.
ignoreCase (required; Boolean)
Indicates whether the search should be case-sensitive (
False) or case-insensitive
(
True).
searchType (optional; SearchOption enumeration)
The type of search to perform. One of the following Microsoft.VisualBasic.FileIO.
SearchOption enumeration values.
Value Description
SearchAllSubDirectories
Includes all files found directly under the specified path and also in all
descendant subdirectories below the specified path
SearchTopLevelOnly ...