HandyFile Find And Replace: Text Workbench Online Help Submit feedback on this topic   

Configuration File for Use in Command Line

Instead of supplying a long tail of options on the command line, you can create and use the configuration file. The configuration file is a text file containing command-line options for use with the HandyFile Find And Replace.

Each option must reside within a single line of text. Options can start from the new line or can be merged into a single line. In the latter case, options must be separated with a space or tab.

The simplest way to create a configuration file is using the Configuration Export Dialog.

Example of the configuration file

File: c:\MyWeb\Projects\replace_span.hffr.cfg

/folder:"C:\MyWebFiles\Projects" /recurse:off
/type:"*.htm*"
/xwhat:"\<span.#\>(.#)\<\/span\>"
/xwith:"\1"
/case:off
/rx:on
/replace:yes
/run

Running the HandyFile Find And Replace with a configuration file

hffr.exe /cfg:"c:\MyWeb\Projects\replace_span.hffr.cfg"