Last updated: June 27, 2016
Useful File Utilities
Information about Batch Replacer
Download it (704 KB) (version
Batch Replacer is a text replacement utility necessary for webmasters,
programmers and everybody who is concerned with computers. Imagine that you need to
replace some text in hundreds of files. It will take you many hours to do it manually.
Batch Replacer is created to solve this problem. It works with ALL files. You can find
all symbols in file and replace them to anything. It does this job for you easily.
So, if you work with hundreds of text files and you need to replace
some text in them, Batch Replacer will do it for you in a second.
Click to enlarge
Here are some key features of Batch Replacer:
- Text replacement can be performed in hundreds of files from several directories (with using basket drive in "Useful File Utilities") simultaneously.
- You can specify multiple text blocks for replacement.
- It gives you a status window while it's running.
- Quick algorithm of text replacement
- Creating backup files
- Save/load "Find and Replace" strings to a file outside the program.
- Find repeated sequence of symbols and replace it to anything.
- You can find symbols in all files. It correctly find any symbols in Exe file and replace them to anything.
- Launch from command line.
- Encode text files from one code page to another (Latin to UTF8 or to UNICODE....)
- Support to processing MS Word and MS Excel files.
You can replace both text strings and blocks in this version of
the Batch Replacer. And now if you want to remove or change the banner on the number
of pages, Batch Replacer will do it is a second. All you need is to input the banner
code in the Find box and the replacement code.
Now we are present some examples for Batch Replacer.
|Set current date
|| Date expression allowing to insert current date instead of string which was found. FORMAT of the date can be described with special symbols which are:
yyyy - Displays the year as a four-digit number (0000-9999).
mm - Displays the month as a number with a leading zero (01-12). If the mm specifier immediately follows an h or hh specifier, the minute rather than the month is displayed.
mmmm - Displays the month as a full name (January-December).
dd - Displays the day as a number with a leading zero (01-31).
dddd - Displays the day as a full name (Sunday-Saturday).
hh - Displays the hour with a leading zero (00-23).
nn - Displays the minute with a leading zero (00-59).
ss - Displays the second with a leading zero (00-59).
am/pm Uses the 12-hour clock for the preceding h or hh specifier, and displays 'am' for any hour before noon, and 'pm' for any hour after noon. The am/pm specifier can use lower, upper, or mixed case, and the result is displayed accordingly.
So expression with date can look like #DATE:yyyy-mm-dd#
|| Replace "File_Name" string to actual file
|| Replace "File_Extension" string to actual
|| Find strings like sad or started and replace them to
#*# means any symbols or no symbols. Therefore sd will be replaced
to CD too.
Insert before every digit a phrase "digit".
#U# on the begining of the "Replace String" mean that all symbols after these 3 control symbols will inserted before the each "Find String".
#D# on the begining of the "Replace String" mean that all symbols after these 3 control symbols will inserted after the each "Find String".
||Insert after each letter and after digits 0,1,5,6 the symbol C.
||Change all symbols which are not from 0 to 9 into asterisk character.
||Any number 3 to 9 inclusive followed immediately by a capital letter will have "," inserted before the event.
This operation allows you to convert Linux text files to Windows text files. Because in Linux files the end of text string is contain only 1 symbol which have code 10 or xA. In windows files the end of the text string is contain two symbols 13 and 10. By performing this operation all symbols which have code 10 will replace to two symbols 13 and 10.
If you need to convert Windows files to Linux well, see next row in current table.
||This operation allows you to convert Windows text files to Linux text files.
||Find CRLFCRLF and replace to CRLF. You can enter value in decimal or hexadecimal code. If entering the value in hexadecimal code then it must be preceded by an "x" or "X".
Find "Gustafson" or "Gustavson" or another words and replace to Gustavsson. "?" mean any character, which has code from 0 to 255.
If you want find and replace symbol "#" you need enter two successive "#" characters. Options Case sensitive apply only for normal text. If you enter this: St#82#ing (Symbol R has code 82), and case sensitive is unchecked, then program find this words : STRING, stRIng, sTRing and others, but can't find word - string, because symbol R in lower case.
||Replace two or more spaces to one space character.
||Replace three or more CRLF symbols to one CRLF.
If you want find character "*" and replace to anything you must enter two successive "*" characters (Only in FindStr).
In ReplaceStr you can enter only one character *
Replace 20 or more "*" symbols to one "*".
||Find two or more "abc" after "text"
and replace them to anything. It replace "abctextabcabcabcab"
||Replace this to nothing.
If you are a web designer, programmer,
network administrator or simple user and you have to change some text in files,
Batch Replacer is for you!!!
Asked questions and answers for Batch