Command Line Parameters [Pro]
TextCrawler has the ability to be called from the Windows command line shell, or a batch (.BAT) file.
The following command line parameters are supported:
/b [batchfilename.txc]
|
load batch file
|
/fn [filename]
|
specify single file for input
|
/of [path]
|
specify output folder
|
/i [path]
|
specify input path
|
/f
|
start find process automatically (will use last saved settings, or settings specified in batch file)
|
/r
|
start replace process automatically (will use last saved settings, or settings specified in batch file)
|
/c
|
close program at end of process
|
Notes:
-
File or folder names with spaces in should be surrounded by double-quote marks (" ")
-
In addition to the above, a folder name can be sent to TextCrawler with no switches, to enable usage with Windows features such as SendTo
-
A batch file (.txc extension only) can also be sent to TextCrawler with no switches.
Examples:
Run a batch script in replace mode, closing the program upon completion.
TextCrawler.exe /b C:\Data\MyBatch.txc /r /c
Specifying a single input file and output folder, run a batch script in replace mode, closing the program upon completion.
TextCrawler.exe /fn "D:\My Data\convertme.txt" /of "D:\Outputs" /b "D:\BatchFiles\Converter.txc" /r /c
Console exit error codes
You can query this using the %ERRORLEVEL% environment variable.
0
|
None
|
1
|
Input Settings Error
|
2
|
Output Settings Error
|
3
|
Invalid Batch File
|
4
|
Invalid Input File or Folder
|
5
|
Invalid Output File or Folder
|
6
|
Cancelled
|
7
|
Other Error
|