Author: Michael Gonzalez
Frequently Answered Questions
Miscellaneous

File Text Search & Replace Utility
HTML Text Extraction using innerText
E-mail (CDONTS.NewMail) Sample Code
SQL Server 7.0/2000

Incorporating ASP and SQL Server
100's of T-SQL Scripts
Don't Use @@ERROR with UPDATE Statements
Exporting Tables to Text Files
Creating SQL Server Databases
ASP (SQL) Query Analyzer
Increasing SQL Server Performance with Indexes
Distributed SQL Server Transactions & Queries
COM/COM+ Development
What is COM?
Isn't ActiveX and COM the same?
How can Components benefit my ASPs?
Am I using COM Components now?
How do I use COM Components in my ASPs?
Creating your First COM Component
Creating a COM Component that uses ASP Intrinsic Objects
Creating a COM Component to access an MS-Access Database
MTS Component Template
MSMQ Component Template / Example

File Text Search & Replace Utility

As a VB, JScript, COM, PHP, SQL, and PHP Programmer, I am always faced with that ugly duty of having to open many files, each one having the same text, searching for that text in the files, replacing that text with other text, then saving the files - one by one!

Pretty time-consuming and boring if you ask me! So, to help make this process a quick and productive one I created a File Text Search & Replace Utility which allows you to:
  1. Choose multiple files.
  2. Perform a text search in each of those files.
  3. Replace that search text with replacement text.
  4. Save the results in each and every file chosen.
Let's say you have a web site and every HTML file on that site contains a BODY BGCOLOR attribute that sets the background color to BLACK and you wanted to change it to WHITE. You would have to go through every single HTML file to alter the attribute and save it accordingly.

Now, you may be saying to yourself, why not use a template and include as an #include statement in an ASP page? Well, many web developers today only use ASP when necessary because of two major reasons:
  1. HTML file load faster that server-side-scripts such as ASPs.
  2. Search engines like HTML pages more than ASP pages(or any other dymanically created page).
So, in order to edit the HTML files you have to go through each and every one - one by one!

Not any more! I created a VB application that you can use to accomplish this task. It doesn't only work with HTML files - it works with any text files.

Download the application by clicking HERE!
Comments & Questions Form

Send It!