# Text Replace

**URL:** https://www.finalbuilder.com/forums/t/text-replace/2344
**Category:** Discussion
**Created:** [February 25, 2015, 4:02am UTC](https://www.finalbuilder.com/forums/t/text-replace/2344 "2015-02-25T04:02:36Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![martin\_home](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/85e7bf/32.png) [@martin\_home](https://www.finalbuilder.com/forums/u/martin_home)
#### Post date: [February 25, 2015, 4:02am UTC](https://www.finalbuilder.com/forums/t/text-replace/2344/1 "2015-02-25T04:02:36Z")

</div>

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

---

<div class="post-metadata">

### Author: ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)
#### Post date: [February 25, 2015, 10:22am UTC](https://www.finalbuilder.com/forums/t/text-replace/2344/2 "2015-02-25T10:22:03Z")

</div>

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.
