
Pre-requisites: .NET Framework
(v 1.1. or later, choose an appropriate download if you not already have .NET installed)
A small utility to change text in several files at a time
Sometimes I had the need to change a short line of text in several files,
e.g. a reference to a website in all pages in another website.
This utility changes a specified text in the selcted files, if it can find the specified
text in it.

It works pretty straightforward:
- Select the directory where the files exist in the treeview to the left.
- Choose if you want to include the subdirectories [defalt selected in the
checkbox]
- Write the old text; The text you want to change from.
- Write the new text; The text you want to change to.
- Enter a "Search Pattern", i.e. criterias for the filenames (as
you e.g. would do in DOS).
- Click on the button [Search files] to scan for files corresponding to
the "Search Pattern" . Found files will show in the listbox below.
- Select those files you want to convert from the listbox below, and click
on the [Start converting]
The treeview is resizable (as well as the whole window), so you can drag the border of it to the
right to get it bigger (or to the left if you want it smaller).
Previous conversions will be saved with the values of "Change from",
"Change to" and "Search pattern" in a textfile; "TextChangerPatterns.xml" in the same
directory as the application. These conversions will be visible in the "Change
from" field, where you can choose one from the dropdown list, and the other
fields will consequently be filled with the corresponding values. If you then
change the values of "Change to" or "Search pattern", the new values will be
stored instead, if you use them in a conversion.
WARNING!
Note that it will change ALL files you have marked
in the listbox, even if they're NOT text files, which means that carelessly
used, it can corrupt files you didn't intend to change.
|