I have one directory with around 100 subdirectories, which include images. I then have a .txt list of images I need to delete from these folders. Since there are a few thousands, I'm looking for a way to batch delete these using bat file. But the problem is that my files are in subfolders and subfolders and also filenames include spaces.
Example:
MainFolder/Subfolder One/Image Sunshine.jpg<br> MainFolder/Subfolder One/Image Cloudy.jpg I've tried multiple options of del, also by putting all paths in txt file inside double quotes. But nothing deletes them. Any ideas how to delete only the selected ones from all subfolders? Renaming or deleting spaces is not an option, since I would have to reupload the remaining images back in the same form as current.
del "MainFolder/Subfolder One/Image Sunshine.jpg"