Rob van der Woude's Scripting Pages
Powered by GeSHi

Source code for checkpsp.bat

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

  1. @ECHO OFF
  2. IF NOT "%OS%"=="Windows_NT" GOTO Syntax
  3. IF NOT  "%~2"==""           GOTO Syntax
  4. ECHO.%1 | FIND "/" > NUL && GOTO Syntax
  5. EXIFTOOL -h > NUL 2>&1   || GOTO Syntax
  6. IF "%~1"=="" (
  7. 	EXIFTOOL -T -q -if "$Software =~ /Paint ?Shop ?Pro/i" -FileName -Software *
  8. ) ELSE (
  9. 	EXIFTOOL -T -q -if "$Software =~ /Paint ?Shop ?Pro/i" -FileName -Software "%~1"
  10. )
  11. GOTO:EOF
  12.  
  13.  
  14. :Syntax
  15. ECHO.
  16. ECHO CheckPSP.bat,  Version 1.00 for Windows 2000 and later
  17. ECHO List all of the specified photographs that have been edited with Paint Shop Pro
  18. ECHO.
  19. ECHO Usage:  CHECKPSP   [ filespec ]
  20. ECHO.
  21. ECHO Where:  "filespec" is the file(s) (wildcards allowed) or directory (default *)
  22. ECHO.
  23. ECHO Note:   Requires Phil Harvey's ExifTool: www.sno.phy.queensu.ca/~phil/exiftool/
  24. ECHO         Will only work when Paint Shop Pro is set to save EXIF data.
  25. ECHO         Can easily be modified to look for other program names.
  26. ECHO.
  27. ECHO Written by Rob van der Woude
  28. ECHO http://www.robvanderwoude.com
  29.  
  30. IF "%OS%"=="Windows_NT" EXIT /B 1
  31.  

page last modified: 2024-04-16; loaded in 0.0063 seconds