Hi Marc,
You can use filer.dll that comes with VFP to find files. The sample code from
Re: Search entire drive for a file Thread #
759634 Message #
759660 should get you started. After that you can loop through the file list and use FILETOSTR(), STRTRAN() and STRTOFILE() to do actual replacement.
>What is the best way in code to scan a directory of files,
>and search a string in each file, and replace that string by another one?
--sb--