HandyFile Find And Replace Online Help. Submit feedback on this topic   

Command Line

HandyFile Find and Replace is equipped with a set of command line parameters which enable you to perform the find/replace tasks from within any batch file and/or external-tool-aware application.

All switches and their values are case-sensitive.

Please note that switches have no default values. The values that had been set during the last attended runtime session are considered default.

SwitchDescription
File and Path Control
/folder:"quoted_path" The folder in which the operation will be performed. Quote the string if it has long names.
/recurse:on|off Recurse subfolders.
/type:"quoted_type" Type(s) (filters) of the files to search for.
/romod:yes|no Modify read only files.
/rorest:yes|no Restore read-only attribute.
/retaintime:yes|no Tells to leave the times of the modified file as-is, without change.
/bakmode:{d|s|p}:"folder_or_path" Back-up creation mode and path to the back-up folder.
Modes (required)
d - default;
s - subfolder of the search folder;
p - static path.
Folder or path (required)
If mode is d, folder name is ignored.
If mode is s, name of the subfolder.
If mode is p, path to the back-up folder; the path may include environment variables (%variable_name%).

Command line path for /bakmode may not contain spaces. To overcome this limitation, declare any environment variable and specify it here with p mode.

Examples
/bakmode:s:"backup"
/bakmode:p:"%BackupFolder%"


These modes fully reflect the Storage Folders Tab options for the Back-up Folder.
/tgtmode:{d|s|p}:"folder_or_path" Target (processed) file storage mode and path to the folder to store the processed files.
Modes (required)
d - default;
s - subfolder of the search folder;
p - static path.
Folder or path (required)
If mode is d, folder name is ignored.
If mode is s, name of the subfolder.
If mode is p, full path to the target folder; the path may include environment variables (%variable_name%).

Command line path for /tgtmode may not contain spaces. To overcome this limitation, declare any environment variable and specify it here with p mode.

Example
/tgtmode:s:"result"
/tgtmode:p:"%TargetFolder%"


These modes fully reflect the Storage Folders Tab options for the Folder for Processed Files.
Text Control
/xwhat:"quoted_string" Find What. Quote the string if it contains space(s).

To use the quotation marks in the text, switch regular expressions on and use operator \x22.
/xwith:"quoted_string" Replace With. Quote the string if it contains space(s).

To use the quotation marks in the text, switch regular expressions on and use operator \x22.
/case:on|off Case sensitivity.
/rx:on|off Regular Expressions.
/replace:yes|no Whether perform replace or not.
/scn:"scenario_name" Designates the use of a scenario to execute.

Note
If the scenario name is correct, it will be activated upon start thus all other text control switches will have no effect if specified.

Report Control
/list:"quoted_path_name" Generate HTML listing.
Runtime Control
/cfg:"configuration_file" Name of the configuration file.

Note
This option erases and cancels all other options if they are specified on the command line. All options are presumed to be stored in the configuration file.

/run Start automatically when launched.
/close Close right after automatic run.
/hidden Do not show the application window when running.
This switch is only applicable if /run and /close switches are both specified.