Simple Vb Application/code

Published Date: Wed, 10 Mar 2010 00:53:40 -0700

I require the following code for 2 very simple VB apps/processes:

1st:

-Prompts user to select a html file
-Once selected, the script appends: “<?php include(’header.php’); ?>” (Without quotes) to the top of the html file.
- Message box saying: “File Has Been Successfully Amended”
- When the user clicks OK on the above message box, a second dialogue box opens prompting the user to save the amended file, with the “Save as Type” set to .php
- Closes upon successful save

2nd:

-Prompts user to select a html file
-Once selected, the script REPLACES all instances of: “%%REPLACE_ME%%” (Without quotes) that it finds in the html code, with: “<?php include(’file.php’); ?>” (Without quotes) in its place.
- Message box saying: “File Has Been Successfully Amended”
- When the user clicks OK on the above message box, a second dialogue box opens prompting the user to save the amended file, with the “Save as Type” set to .php
- Closes upon successful save

I require the code for this to be usable in Visual Basic 2008 or similar so it can be modified by myself later to capture different variables for different situations.(Note- VB-6 requires translating before it’s usable in Visual Basic 2008)

Simple Vb Application/code