hta script to display animated GIFs in a folder RRS feed

  • Question

  • Dear Community,

    in the Windows 7 Forum I found a working hta script to display animated GIFs located in a folder.

    Sorry, but I can't give you the link of the source, as my post would get flagged as spam.

    Here is the hta script:

    <body><script type="text/vbs">
    set fso=CreateObject("Scripting.FileSystemObject")
    set fldr=fso.GetFolder(".")
    for each file in fldr.files
    if lcase(right(,4))=".gif" then
    document.write "<img src=""" & & """>"
    end if

    Is there any way to modify this script, so it can not only display and animate GIFs of the folder where the hta file is located, but also include every subfolder in this folder?

    Best regards,


    Tuesday, September 18, 2018 8:29 PM

All replies