Batch photo organizer

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Posts: 6033
Joined: 10 Feb 2012 02:20

Re: Batch photo organizer

#16 Post by foxidrive » 17 May 2015 17:47

I suspect the number of files etc may be causing a very slow startup to a bug in that style of FOR command.

Replace this line:

Code: Select all

for /f "tokens=1-7 delims=: " %%a in (' type "%%~nz.txt" ^| find "DateTimeOriginal :" ') do (

with these two and try it:

Code: Select all

type "%%~nz.txt" | find "DateTimeOriginal :" >temp01.tmp
for /f "usebackq tokens=1-7 delims=: " %%a in ("temp01.tmp") do (

Post Reply