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. 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...
  3. Windows photo viewer, animate gifs plugin or xp sort issues on 10

    in Windows 10 Software and Apps
    Windows photo viewer, animate gifs plugin or xp sort issues on 10: I've been through various forums and haven't found what I'm looking for save for 'download infranware' or whatever it's called. Long of the short. I want to be able to use the xp 'windows picture and fax viewer' to scroll through images in the order they're in, in my...
  4. How to force subfolders to display parent folder's columns?

    in Windows 10 Support
    How to force subfolders to display parent folder's columns?: So example, I have folder named MP3. Inside this folder I have folder named FLAC. MP3 folder has Name, Title, Artist, Type, Bitrate columns. How to make FLAC folder to display the same things in the same exact arrangements? If I have FLAC 1, FLAC 2, FLAC3 then to...
  5. Duplicate subfolders in User folder

    in Windows 10 Support
    Duplicate subfolders in User folder: Hi there. Have been working with Build 10074 for several days. Just realized yesterday that my main user folder has duplicate sub-folders (2 Documents, 2 Music, 2 Videos, 2 Downloads, 2 Pictures). They are the same size, have the same properties). Whichever one I delete,...
  6. 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.
  7. Can't Delete Windows.old folder or subfolders.

    in Windows 10 Performance & Maintenance
    Can't Delete Windows.old folder or subfolders.: After doing an In-place Reinstall of WIndows 10 X64 to fix update problems. I ran the Clean Windows Files Program to Delete all 'Old' Windows Folders & files. All seemed to go well until I looked at C:\ dribve and see that Windows.old still exists. I've tried everything to...
  8. "Infinite" Application Data folders and subfolders

    in Windows 10 Support
    "Infinite" Application Data folders and subfolders: "Infinite" Application Data folders and subfolders (screen shots attached and/or via WEB links) I have an issue in my "C:\Users\All Users\Application Data\Application Data\Application Data" folder. I believe its loosely called "Infinite" Application Data folders and...
  9. 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...
  10. Animated GIF Support Comes to Mail app in Windows 10

    in Windows 10 News
    Animated GIF Support Comes to Mail app in Windows 10: In the 71st episode of The Email Design Podcast, Kevin Mandeville and Jason Rodriguez announce the support of animated GIFs in Windows 10 Mail, the resolution of image gaps bug in Outlook.com and Office 365, faking video in email with CSS animated sprites, and more....