The DirSrch object recursively searches all directories for a specified folder name or partial directory path. Use DirSrch to locate essential folders whose paths are not known.
Properties: ============ object.StartDirectory = starting directory StartDirectory specifies where to begin looking for matching directories. All directories under the start directory will be recursively searched.
object.LookingFor = folder name or partial path LookingFor is the path fragment or directory name to search for. Anything set in LookingFor will be matched to any part of a directory path.
Methods: ============ object.Execute() Execute performs the search. The time to complete a search is dependent on the start directory and the size of the drive being searched. Execute must be called before calling any other methods.
object.CountMatches() Returns a long specifying the number of matching directories found.
object.MatchingDirs() Returns a collection (array) of matching absolute directory paths.