Sign-in / Sign-up
Your question

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

Last response: in Windows 7
June 6, 2013 10:31:39 PM

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

1.zip
1.jpg

2.zip
2.jpg

3.jpg

4.jpg

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!

More about : batch file match images files delete images matching file

June 6, 2013 10:48:36 PM

What code have you written so far? If you can post that then maybe someone can help you find the problem with it.
m
0
l
June 7, 2013 1:31:26 AM

I haven't written any code..as 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.
m
0
l
June 7, 2013 7:30:16 PM

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.
m
0
l