1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Solved: Can't Delete unwanted txt from HTML file

Discussion in 'Software Development' started by JuniperGreen, Jan 11, 2013.

Thread Status:
Not open for further replies.
  1. JuniperGreen

    JuniperGreen Thread Starter

    Jan 3, 2013
    I seem to collect quite a number of HTML files which for one reason or another have additional text which appears at the end of the HTML file. This text is located after the closing tags </body></html>. Currently, to remove it, I have to load each file in Notebook and delete the unwanted text as I have found HTML tag removing software just ignores it as you would expect. Consequently, I am looking for a VBS script to scroll through a directory of such html files and remove any entries added after the </body></html> tags in each of the HTML files.

    I have drawn a blank on anything like this having been discussed so far, so I would be grateful for any help. I suspect any script might involve the use of regex a somewhat daunting prospect for me.

    Thank you

    Vista Home Premium 32bit
  2. Rollin_Again


    Sep 4, 2003
    Can you post a sample file? The script should be easy to write

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1084685

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice