Find/replace text inside multiple documents

Posted on 2012-09-15
Medium Priority
Last Modified: 2012-09-16
I have a bunch of scripts that I need to update a server name in.
Instead of changing 1 by 1, is there a tool I can use to find/replace on multiple files? (.bat files)
Question by:Howzatt

Expert Comment

ID: 38401708
You can do this using Microsoft Office Word. Depending on your version of word the tool may be in different places on the tool bar.

Once you've found the tool you'll be able to input the word you want changed and the new version of the word.
LVL 10

Assisted Solution

mark_harris231 earned 2000 total points
ID: 38401962
Check out "A.F.9" utility (he's got some other cool utilities for renaming/splitting/merging files as well):

A.F.9 Replace some bytes
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 18

Expert Comment

by:Sarang Tinguria
ID: 38401991
open bat file in notepad ype ctrl+h and you will see the find and replace windows
Type old text in first block and new text i.e text which will replace the old one in second box thats it
LVL 10

Accepted Solution

mark_harris231 earned 2000 total points
ID: 38402012
To clarify, I believe Howzatt is looking for a solution that will allow him to perform a find/replace against multiple files without the need to open each one.  Suggestions to use Word/Notepad cannot address this requirement.

The freeware utility I mentioned, A.F.9, provides multi-file, drag-and-drop, search & replace functionality.

Expert Comment

ID: 38402159
I use a great command line utility called "bsed.exe".

When I get home I will upload it.


Author Closing Comment

ID: 38404176
A.F.9 worked perfect. Updated all 50 odd scripts within milliseconds.

Featured Post

Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question