Rob van der Woude's Scripting Pages
Powered by GeSHi

Source code for picture2.bat

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

  1. @ECHO OFF
  2. REM PICTURE2.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 PICTURE3.BAT
  19. REM for each GIF in the current directory
  20. FOR %%A IN (*.GIF) DO CALL PICTURE3 %%A
  21.  
  22. REM Do the same for all JPG files
  23. FOR %%A IN (*.JPG) DO CALL PICTURE3 %%A
  24.  
  25. REM Set PROMPT to display closing HTML tags
  26. PROMPT "$G$_$L/HTML$G$_$L/BODY$G
  27.  
  28. REM Set ECHO on, insert 1 empty line and then set
  29. REM ECHO off again to actually display the prompt
  30. ECHO ON
  31.  
  32. @ECHO OFF
  33. REM Restore original PROMPT
  34. PROMPT %OLDPRM% 
  35.  

page last modified: 2024-02-26; loaded in 0.0160 seconds