I want to sort my .jpg files by time of day - I found that the filename contains the hour of the day at which it was taken - time corresponds to a digit preceded by a white space - only white space in the filename.
This command works to list the specific files in question:
Code: Select all
dir /s E:\photos\"* 19*".jpg
Trying to get this to work in conjunction with move or copy does not work.
Code: Select all
for /F %i in ('command to get files list') do command %i
for /f %i in ('dir E:\photos\"* 19*".jpg') do move E:\ %i
I want to put this code into a batch file so I can sort my photos by time of day.