Hi I'm trying to search a directory for files containing a specific string and log the path and filename that contain the search string to a new file. I'm trying to mimic the grep command in unix. Hope someone can help me.
And here is a macro which uses FindInFiles to create a list of files in which the search string is found.
The macro property Continue if a Find with Replace not found must be checked for this macro.
It contains some extra code which are workarounds for known problems with Find In Files usage in a macro and should work for v10.20 and higher (tested with v11.20a and v12.20a+1). Since v12.00 the search result is a Unicode file which is detected by this macro and converted to an ASCII file to avoid some problems with Unicode files.
Adapt the optional and required parameters of command FindInFiles to your need.