Computer Hope

Microsoft => Microsoft DOS => Topic started by: meiben2000 on June 28, 2004, 12:58:22 PM

Title: find and replace text using a batch file
Post by: meiben2000 on June 28, 2004, 12:58:22 PM
Hi all,
I'm using a batch file to copy a series of files.  Is it possible to use a "find and replace" type of command to find a string of text in a .txt file and replace it with a new string?  If so, what is the best way to go about this?

TIA
Matt  
Title: Re: find and replace text using a batch file
Post by: willsort on June 30, 2004, 06:25:48 AM
use edlin.exe
Title: Re: find and replace text using a batch file
Post by: meiben2000 on June 30, 2004, 07:52:47 AM
Thank you.  

I can get it to work thru the command prompt but when I try it in a .bat file it pauses at the * prompt.

Any suggestions?