Can't Delete unwanted txt from HTML file

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
 

My Computer

I don't profess to know the answer to your question.

How do you know you're collecting a bunch of HTML files, not to mention that there's unwanted text in them?

Are they causing a problem?
 

My Computer

System One

  • Operating System
    Vista Home Premium 64 bit SP2
    Manufacturer/Model
    Cyberpower
    CPU
    Intel Quad CPU Q6700 2.67 GHZ
    Motherboard
    NVIDIA 780i
    Memory
    4 GB
    Graphics Card(s)
    MSI GTX 560 TI Twin Frozr
    Sound Card
    Sound Blaster SB Audigy
    Monitor(s) Displays
    Viewsonic VG2436
    Screen Resolution
    1920x1080p
    Hard Drives
    Samsung HD 105SI
    WDC WD20
    Case
    Apevia XJupiter
    Cooling
    air
    Keyboard
    Logitech MX 3200
    Mouse
    Logitech MX 600
    Internet Speed
    30 Mbps
Back
Top