I
I
iva20002018-03-15 15:20:29
Automation
iva2000, 2018-03-15 15:20:29

How to automatically delete RAW files if previously deleted JPGs with the same name?

Approximately half of the JPGs from the huge folder of JPG+RAW photos were considered unsuccessful and removed. But RAW (CR2) remained, which must also be deleted if the corresponding JPG is deleted.
How to do it? Manually long.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Moskus, 2018-03-15
@Moskus

If you have never shot in RAW only, then there is no JPEG file with the same name as the RAW file, which is a sure sign that RAW needs to be deleted, and it cannot be that the original pair of JPEG and RAW is scattered around different folders, the easiest way is to write a batch file (by the way, you didn’t specify the OS in the tags, but it looks like it’s Windows), which will bypass all folders recursively, iterate over all *.cr2, check the existence condition in the same folder of the file with the same name, but .jpg, and if the condition is not true, delete .cr2.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question