>Anyone know the VFP syntax for an API or WSH function that will return an array of filenames whose contents contain a specified string? TIA!
You can use Filler.dll that comes with VFP.
oFiler = CREATEOBJECT('Filer.FileUtil')
oFiler.SearchPath = "H:\temp"
oFiler.FileExpression = '*.PRG'
oFiler.SearchText1 = "LOCAL"
?oFiler.Find(0)
? oFiler.Files.Count
--sb--