Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. for /r %%imagefile2 in (%cd%/camera-2-*.jpg) do (
  2. set imagefile1=%%imagefile2:camera-2=camera-1%
  3.  
  4. echo "Primary image file:"
  5. echo %imagefile1
  6.  
  7. IF EXIST %cd%/%imagefile1 (
  8. echo "Good pair."
  9. ) ELSE (
  10. ECHO "Bad pair. Primary image file doesn't exist. Deleting second image file as well..."
  11. )
  12. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement