@ECHO OFF ECHO. ECHO Pict_NT.bat, Version 2.00 for Windows NT 4 and later ECHO Displays all GIFs and JPEGs in a HTML file. ECHO. ECHO Written by Rob van der Woude ECHO http://www.robvanderwoude.com ECHO. IF NOT "%OS%"=="Windows_NT" GOTO:EOF IF NOT EXIST *.GIF IF NOT EXIST *.JPG IF NOT EXIST *.JPEG GOTO:EOF SETLOCAL :: Get code page FOR /F "tokens=*" %%A IN ('CHCP') DO FOR %%B IN (%%A) DO SET CodePage=%%B IF %CodePage% LSS 1000 (SET CharSet=ibm%CodePage%) ELSE (SET Charset=windows-%CodePage%) SET Version=2.00 SET OutFile="%~n0.htm" > %OutFile% ECHO ^ >> %OutFile% ECHO ^ >> %OutFile% ECHO ^All GIFs and JPGs found in directory %CD%^ >> %OutFile% ECHO ^ >> %OutFile% ECHO ^