M
mbf
We are currently using the FileSearch object to search a
directory for files containing certain text. This works
as long as what we are searching for is an alpha or
numeric character set -- when we go to search for a
different type of character or series of characters, such
as a series of dashes or underscores, the FileSearch
object appears to ignore what we have specified
as "TextOrProperty" and simply returns a list of files
based on the filename pattern only.
Is there any way to specify a non-alpha, non-numeric
character set as the text to search for and have
FileSearch return the correct results? If not, is there
some other object or perhaps an API call we could use to
accomplish this? BTW, we are on WinXP using VB6 and
automating Word to use FileSearch.
Thanks in advance for any insights ... mbf
directory for files containing certain text. This works
as long as what we are searching for is an alpha or
numeric character set -- when we go to search for a
different type of character or series of characters, such
as a series of dashes or underscores, the FileSearch
object appears to ignore what we have specified
as "TextOrProperty" and simply returns a list of files
based on the filename pattern only.
Is there any way to specify a non-alpha, non-numeric
character set as the text to search for and have
FileSearch return the correct results? If not, is there
some other object or perhaps an API call we could use to
accomplish this? BTW, we are on WinXP using VB6 and
automating Word to use FileSearch.
Thanks in advance for any insights ... mbf