Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm looking for a program/image viewer/gallery that I can point to a folder and see thumbnails of all the animated GIFs doing their animation.

Or something that make the GIFs animate without having to open each file.

Does such a thing exist?

share|improve this question

3 Answers 3

  1. Create a new text file. e.g. "createGifsHtml"

  2. Open it and paste this line:

    FOR /F %%G IN ('dir /B *.gif') DO echo ^ < img src="%%G"^ width="200"^>^ >> gifs.html

(remove space between "<" and "img", just added space so the line display fine)

  1. Then save this file in the folder where your gifs are located.

  2. Make sure your folder option is so that you display extensions of known files so the file shows as "createGifsHtml.txt".

  3. If so rename this file and replace .txt by .bat => "createGifsHtml.bat"

  4. Execute this bat. (double click / enter)

It will briefly open a cmd window and create the html page that you can open with any browser.

share|improve this answer
Isn't this the same as the answer that was posted 4 years ago? –  Jason C May 12 at 1:36

When you save go "save as", select filetype all files, then type in for the name "gif.bat" remember to use the quotes otherwise it will just save it as a text file not a bat file. Double click, it will compile the html and enjoy!

share|improve this answer

Open notepad, put this text inside:

FOR /F %%G IN ('dir /B *.gif') DO echo ^<img src="%%G"^ width="40"^>^ %%G^<br^> >> gifs.html

Save it with name "whatever.bat" in folder where you have your gifs located, but choose "All files", not "Text file". Then navigate to your folder and doubleclick on whatever.bat. This will create another file called "gifs.html" in current directory. Doubleclick on it and you will see your gifs in web browser.

share|improve this answer
thanks for the reply. I did everything you mentioned but when I doubleclick on whatever.bat nothing is happening... –  saitsu Jun 21 '11 at 9:13
oh wait this time I tried to save the whatever.bat with the encoding UTF-8. When I doubleclicked on it indeed created another file called gifs.html but when I doubleclick on this one it only shows a white page in the browser. –  saitsu Jun 21 '11 at 9:23
then you did not save whatever.bat to folder where you have gifs –  gadelat Jun 21 '11 at 9:36
I have six gifs in the folder where I saved whatever.bat –  saitsu Jun 21 '11 at 9:39
Try another browser. If it does not help, open gifs.html with notepad, copy content, put it to pastebin.com and put here link to it. –  gadelat Jun 21 '11 at 9:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.