Home / Microsoft / Microsoft DOS / find and replace text using a batch file
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] - (Bottom) Print
Author Topic: find and replace text using a batch file  (Read 2849 times)
meiben2000
Guest
« 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  
IP logged
willsort
Guest
« Reply #1 on: June 30, 2004, 06:25:48 AM »

use edlin.exe
IP logged
meiben2000
Guest
« Reply #2 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?

IP logged
Pages: [1] - (Top) Print 
Home / Microsoft / Microsoft DOS / find and replace text using a batch file « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.096 seconds with 18 queries.