Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.
Edit>Fnd>Replace a string in batch
Name: wullieboy Date: July 28, 2003 at 09:20:39 Pacific OS: 2000 CPU/Ram: 233
Comment:
Is it possible to use a DOS batch file to:
1. Open a file - Yes, use edit...
2. Once open, find and replace the string 'MINIMUM' to 'NORMAL'
Name: brendan Date: July 28, 2003 at 10:10:38 Pacific
Reply:
up top there is a "search" menu
in that menu there is a 'replace' option
0
Response Number 2
Name: wullieboy Date: July 29, 2003 at 02:16:30 Pacific
Reply:
I want to perform this operation from the command line however i.e. starting the batch file will open the file, search for the string and replace it with a new string.
Summary: Hello, I am trying to search for a string in a file. What I would like to do is to search for some error string AFTER the line where today's date is printed. Today's date is printed in a format like t...
Summary: I need your help with this. I am trying to write a batch file to replace a line in one text file with a line from another text file. Say TextA has these lines: line1 line2 line3 and TextB has the fo...
Summary: I need to rename a file in a DOS Batch script but do not know how to handle the long file name. Filename: eop.test_BBB_2005052000000M07S.txt I want to rename the file to Filename: 2005052000000M07S.tx...