How to add a line of text to the top of all files in a directory:
I have a lot of .asp files in different directories that I wish to add a line of text to the TOP of each one of them.
The line of text = <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
Example:
BEFORE:
<!--#include file="common.asp"-->
<!--#include file="TL_Reference.asp"-->
<%
'checkpermissions "p_admin|p_calendar"
checkpermission
arActName = array("Modify Certification", "Configure Transcript", "Configure Certificate", "Delete Certification")
arActURL = array("certification_modify.asp?id=","certification_configtrans.asp?id=","certification_configcert.asp?id=","certification_delete.asp?id=")
%>
<html>
AFTER:
Go to the complete details ...