Search found 5 matches
- 11 Apr 2013 11:28
- Forum: DOS Batch Forum
- Topic: FIND and replace all
- Replies: 13
- Views: 12444
Re: FIND and replace all
Here's a batch file that is pretty robust to replace text using pairs of terms, and in every file in the folder. It replaces the original files so test it well first. Single % characters will even work. An example command line would be like this: SAR "blue" "red" "cat"...
- 10 Apr 2013 21:51
- Forum: DOS Batch Forum
- Topic: FIND and replace all
- Replies: 13
- Views: 12444
Re: FIND and replace all
The KeyValueFile is in this format: OldWord To Replace : NewWord To Replace With The words can contain spaces , but it must be separated by a colon, or you can change the separator variable with the separator in your file. Old words in the left, new words in the right. Make sure the separator is no...
- 10 Apr 2013 12:10
- Forum: DOS Batch Forum
- Topic: FIND and replace all
- Replies: 13
- Views: 12444
Re: FIND and replace all
abc0502 wrote:no, it's not case sensitive, i just tested again
the code didnt worked properly


- 09 Apr 2013 22:48
- Forum: DOS Batch Forum
- Topic: FIND and replace all
- Replies: 13
- Views: 12444
Re: FIND and replace all
Try This on Sample files First, I tested but test it yourself. Take a backup copy of all your files, the batch create a .backup copy but can be overwritten if the batch run twice. > All what you have to do is to set the first 4 variables [ lines 4 to 7 ] > Don't put the batch file in the main folde...
- 09 Apr 2013 12:05
- Forum: DOS Batch Forum
- Topic: FIND and replace all
- Replies: 13
- Views: 12444
FIND and replace all
I have to replace some content in all files with some specific extension. For eg: In folder toChange i may have multiple sub folder, now I want to change text isabcd to isxyz in all the files with extension html what will be the batch for such command, I am using windows Actually there will be multi...