Batch File - Match images to Files, delete images when no matching file.

Not sure if this is the right place, but I am trying to write a probably simple batch file that will

Check images in a directory and see if there is a matching rar or zip file with the same name. If there is, it moves on, if there is not it deletes the image.

Images are .jpg and .png

So basically say I had



It would scan, see that 1 and 2 have zips and images and ignore, but 3 and 4 that it found no matching file it would delete those

Thanks in advance!
3 answers Last reply
More about batch file match images files delete images matching file
  1. What code have you written so far? If you can post that then maybe someone can help you find the problem with it.
  2. I haven't written any I am not a programmer at all..I tried to do some googling and see if I could figure it out but came up empty handed.
  3. I hope someone will be able to help you. I haven't written a batch file in years and it would take a bit of time for me to even attempt one like the one you want.
Ask a new question