XReplace-32 can perform several tasks from command line. The feature is coupled with macro and schedule support making
search-and-replace automation really easy. The command line execution is also called Batch Mode
and
is also Unattended
.
The xrep32.exe
command line syntax is:
xrep32.exe [xpl] [macro] [-noexec] [-noquit]
|
The
xpl
file must be a valid grid and file selection saved within XReplace-32.
The
macro
file must be a valid macro command .xrm file.
XReplace-32 will parse the command line arguments and execute accordingly.
You may specify multiple xpl files and multiple macros in any order.
Every file that was not identified as a valid XReplace-32 .xpl file, it will be assumed to be a macro and will be
executed.
If no macros are executed and an .xpl file is loaded, XReplace-32 will automatically launch a single
search-and-replace operation. You can avoid executing the search-and-replace operation when a .xpl file has been loaded by adding
-noexec
to the command line.
If a .xpl file or a macro has been successfully loaded, XReplace-32 will automatically terminate after all operations
have been completed. Add -noquit
to the command line to prevent this behavior.
A critical error will force XReplace-32 not to terminate as well.
For example, a command line such as:
xrep32.exe c:\xreplace\test1.xpl
|
will load the c:\xreplace\test1.xpl file, execute the replacements and terminate.