Rob van der Woude's Scripting Pages
Powered by GeSHi

Source code for __gif.bat

(view source code of __gif.bat as plain text)

  1. @ECHO OFF
  2. REM __GIF.BAT
  3.  
  4. REM Save current PROMPT
  5. SET OLDPRM=%PROMPT%
  6.  
  7. REM Set PROMPT to display starting HTML tags
  8. PROMPT $LHTML$G$_$LBODY$G$_$_$LIMG="
  9.  
  10. REM Set ECHO on, insert 1 empty line and then set
  11. REM ECHO off again to actually display the prompt
  12. ECHO ON
  13.  
  14. @ECHO OFF
  15. REM Set PROMPT to display HTML IMG tags
  16. PROMPT "$G$_$LIMG SRC="
  17.  
  18. REM Call secondary batch file ___GIF.BAT
  19. REM for each GIF in the current directory
  20. FOR %%A IN (*.GIF) DO CALL ___GIF %%A
  21.  
  22. REM Set PROMPT to display closing HTML tags
  23. PROMPT "$G$_$L/HTML$G$_$L/BODY$G
  24.  
  25. REM Set ECHO on, insert 1 empty line and then set
  26. REM ECHO off again to actually display the prompt
  27. ECHO ON
  28.  
  29. @ECHO OFF
  30. REM Restore original PROMPT
  31. PROMPT %OLDPRM% 
  32.  

page last uploaded: 2017-08-21, 14:26