Trying to write a batch file that will loop through all the files in a directory and if the first part of the file is not found in the text file then delete.
In the images directory the files are named like:
1_a.jpg
1_b.jpg
1_c.jpg
2_a.jpg
3_a.jpg
3_b.jpg
in the file the list is
2
3
So at this point I would like to delete
1_a.jpg
1_b.jpg
1_c.jpg
Started by using:
@echo off
wget -N http://www.domain.com/imagelist.txt
FOR /R C:\image-directory\ %%G IN (*.jpg) DO ??????? %%G
And im stuck.