Windows 10: hta script to display animated GIFs in a folder and its subfolders

Discus and support hta script to display animated GIFs in a folder and its subfolders in Windows 10 Support to solve the problem; Dear Community, in the Windows 7 Forum I found a working hta script to display animated GIFs located in a folder:... Discussion in 'Windows 10 Support' started by PeterCo, Sep 26, 2018.

  1. PeterCo Win User

    hta script to display animated GIFs in a folder and its subfolders


    Dear Community,

    in the Windows 7 Forum I found a working hta script to display animated GIFs located in a folder:
    https://www.w7forums.com/threads/ani...xplorer.15080/

    Here is the hta script:

    Code: <html><head><title>Animator</title></head> <body><script type="text/vbs"> set fso=CreateObject("Scripting.FileSystemObject") set fldr=fso.GetFolder(".") for each file in fldr.files if lcase(right(file.name,4))=".gif" then document.write "<img src=""" & file.name & """>" end if next </script></body></html>[/quote] 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?

    In this forum a user posted a solution code to me:
    https://windowsforum.com/threads/hta...4/#post-718548

    Here is his version of the hta script code:

    Code: <html><head><title>Animator</title></head> <body><script type="text/vbscript"> set fso=CreateObject("Scripting.FileSystemObject") set fldr=fso.GetFolder(".") WalkFolder fldr Sub WalkFolder(CurrentFolder) Dim SubFolder For Each SubFolder In CurrentFolder.SubFolders WalkFolder SubFolder Next Dim CurrentFile For Each CurrentFile in CurrentFolder.Files IF lcase(right(CurrentFile.name,4))=".gif" then document.write "<img src=""" & CurrentFile.name & """>" end if Next End Sub </script></body></html>[/quote] His version of the hta script code seems to actually find the GIF files of the subfolders, but sadly it fails to correctly display the GIFs of the subfolders. In contrast to that, the GIF files of the current folder (parent folder of the subfolders and the folder, where the hta file is located and executed) are displayed and animated correctly. This screenshot shows, how the GIFs of the subfolders get displayed wrongly (I did not include the working GIFs of the parent folder in the screenshot to avoid copyright issues):


    hta script to display animated GIFs in a folder and its subfolders [​IMG]


    Does anyone know how to modify the script to avoid this issue?

    Best regards,


    :)
     
    PeterCo, Sep 26, 2018
    #1

  2. Animated GIF

    This is not a question but a suggestion to microsoft to address the support for animated GIF with an update TO windows phone 8.1 devices ASAP.
     
    Nawraj Rai, Sep 26, 2018
    #2
  3. Bree Win User
    With the latest Windows update ".gif" files are no longer animated


    Well, to be able to view all your animated gifs, I suggest you set the default for opening them to Internet Explorer.

    Right-click on a .gif file. Select 'Open with > Choose another app'. tick the 'always use this app to open .gif files' box, select Internet Explorer from the list, then click OK.
     
  4. hta script to display animated GIFs in a folder and its subfolders

    Lumia 920 animated GIF's

    If the destination device supports animated gifs they will work, if the device doesn't they will either not show or display as a static image.

    You can read a lot more about how GIF files work by searching google or wikipedia.
     
    psychomania---01, Sep 26, 2018
    #4
Thema:

hta script to display animated GIFs in a folder and its subfolders

Loading...
  1. hta script to display animated GIFs in a folder and its subfolders - Similar Threads - hta script display

  2. Microsoft GIF Animator crashes on my PC

    in Windows 10 Gaming
    Microsoft GIF Animator crashes on my PC: Good Day:I found this morning as I was creating an animated GIF, using Microsoft GIF animator, that all of a sudden it would just disappear! This was to my chagrin and horror, as I use it very frequently and have never had this problem occur before.I have the error log event...
  3. Microsoft GIF Animator crashes on my PC

    in Windows 10 Software and Apps
    Microsoft GIF Animator crashes on my PC: Good Day:I found this morning as I was creating an animated GIF, using Microsoft GIF animator, that all of a sudden it would just disappear! This was to my chagrin and horror, as I use it very frequently and have never had this problem occur before.I have the error log event...
  4. Microsoft GIF Animator crashes on my PC

    in Windows 10 BSOD Crashes and Debugging
    Microsoft GIF Animator crashes on my PC: Good Day:I found this morning as I was creating an animated GIF, using Microsoft GIF animator, that all of a sudden it would just disappear! This was to my chagrin and horror, as I use it very frequently and have never had this problem occur before.I have the error log event...
  5. Folders and Subfolders

    in Windows 10 Support
    Folders and Subfolders: Using windows explorer to organize photos by year and then subfolders for activities during that year I want to be able to see all folders and subfolders on the main windows explorer screen without having to click on the year folder to see what that year contains. Is that...
  6. Animated Wallpaper or GIF wallpaper

    in Windows 10 Ask Insider
    Animated Wallpaper or GIF wallpaper: Does anyone know how to get some nice animated or gif wallpapers on windows 10 because I've seen some YouTubers have nice wallpapers and when I watch videos on how to get them and use the link they provide I am not able to do it Any help is grateful. submitted by /u/Atharvt...
  7. Set animated gif as lockscreen

    in Windows 10 Ask Insider
    Set animated gif as lockscreen: Hi, today I discovered that you can change the windows startup sound, so I changed it to the sound of a car starting up. Now I want to set my lock screen to an animated gif of a car’s dashboard. How can I do so if possible? submitted by /u/Jammer313908 [link] [comments]...
  8. Avatars (Animated gif)

    in Windows 10 Customization
    Avatars (Animated gif): I don't wanna hi-jack Stephanie's thread so I created this thread for animated avatars. @gregrocker , here is your request. [img] Hope this will do... Creating animated avatar is easy. Anyone can do it online for FREE. The only tricky part is creating the...
  9. With the latest Windows update ".gif" files are no longer animated

    in Windows 10 Support
    With the latest Windows update ".gif" files are no longer animated: That's good *Thumbs You marked it 'resolved' a little earlier which is all you can do *Smile Threads are never closed because often others in a discussion wish to either continue among themselves, or perhaps new information comes to light.
  10. Unable to delete a subfolder, no problem with its subfolders

    in Windows 10 Support
    Unable to delete a subfolder, no problem with its subfolders: Curious thing... When deleting a X:\subfolder I am getting a recyle bin error:"The folder contains items whose names are too long for the Recycle Bin." The longest path in all the sub-subfolders is 247. When I select that file (longest path), deleting is no problem.When...

Users found this page by searching for:

  1. scripting ghifs in my stream

    ,
  2. moving gifs slow hta

    ,
  3. hta gif get current folder

    ,
  4. script to view gifs in html