Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there a way to "batch" add a script to a folder of files?

Status
Not open for further replies.
Joined
Jul 13, 2001
Messages
180
Location
US
I have a folder of html pages that I want to place level password permissions on. The script checks that unless they have gone through the login page, they are denied access to any of those pages.

I have over 100 pages and it would be a pain to add the script to each one individually.

.htaccess is NOT an alternative. My ISP is on Win 2K servers without Apache.

Is there also a way to "batch change" a folder of html files to asp?

Thanks very much for any help.
 
find and replace in the html

something like
find
</head>

replace with
<script>
!!password check script here
</script>
</head>

full backup first!! Live long and make your kids suffer..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top