Batch to read filenames from a file, move them to another dir and list in a text file any that failed -


i have directory of 15,000 images, use 1500. used excel creaet list of commands move each of 1500 images used new folder.

the problem 1200 images copied, leaving 300 images need create or find.

i trying following:

file1 has list of filenames file2 list filenames not avilable

for each filename in file1, read , move file folder. if there error (no image move), write image name in file, have list of 300 images need find.

thanks help. have little batch experience, bit on head.

for /f "delims=" %%a in (excel_file.txt) if exist "%%a" (move "%%a" "destinationdirectoryname") else (echo %%a>>cantfindthisfile.txt) 

not hard...


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -