TextSweep

Check-in [a2f92e6a34]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:add cli script
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:a2f92e6a34236a093ad6d482c5a2076b2496360b
User & Date: kevin 2020-02-22 02:59:33
Context
2020-03-14
23:04
Minor tweak Leaf check-in: 08cb7b9af4 user: kevin tags: trunk
2020-02-22
02:59
add cli script check-in: a2f92e6a34 user: kevin tags: trunk
2020-01-03
13:53
Fix icons for Windows check-in: b99df47d70 user: kevin tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Added textsweep-cli.bat.







































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
:::textsweep-cli   -- batch interface to TextSweep.  2020 Kevin Walzer/WordTech Communications LLC.

::check to see if TextSweep is running

call ddecmd servers | findstr "TextSweep" 
If %ERRORLEVEL% EQU 1  start TextSweep.lnk
 
::check to see if run with or without args

if "%~1"=="" (
  exit
) else (
timeout 5
call ddecmd execute --server TclEval --topic TextSweep --command "set_search_folder %1"
call ddecmd execute --server TclEval --topic TextSweep --command "set_search_pattern %2"
call ddecmd execute --server TclEval --topic TextSweep --command "set_search_term %3"
call ddecmd execute --server TclEval --topic TextSweep --command "set_replace_term %4
call ddecmd execute --server TclEval --topic TextSweep --command "execute_replace"
)