I have a Sony camera which is set to shoot in both RAW and JPG formats, so I can decide whether to keep the jpg image or to process it further. Once of the biggest problems that I have is that I always look at the jpg images, and I remove the ones that I don’t need, but the RAW images (.arw in my case) are left behind. To rectify this problem, I decided to use the command prompt in Windows:
forfiles /m *.arw /c "cmd /c if not exist @fname.jpg del @file"
Which means:
For every .arw in the current folder check if there is a corresponding .jpg with the same name – if there is not, delete it.