Text Replace

I would like to edit a .bat file and change the echo statements to go to a file.

I would like to change all echo statements from this

echo this is some text

echo here is some more text

to this

echo this is some text >> S:\@Testing\WinPath7\PATIENTSERVICE\UPGRADE_SCRIPTS\UPGRADE.LOG

echo here is some more text >> S:\@Testing\WinPath7\PATIENTSERVICE\UPGRADE_SCRIPTS\UPGRADE.LOG

I have tried using the action Text Replace with wildcards but without successSearch string : echo *

Replacement string : echo $1 >> %LOG_PatientDb_Install%

Any ideas would be luch appreciated

Hi Mfh,

The Text Replace Action simply will replace what is searched for with the text specified. If you wish to in-place replacements I suggest using the Text Find / Replace Action. This action also lets you perform the find and replace on files directly so no need to push the line into a variable.