cmd /V:ON /C "for /F "skip=5 tokens=1-7* delims=/: " %a in ('dir /A-D /T:C f:\ani\*.*') do @set h=%d&(if %f equ p.m. set /A "h=(1%d+12-100)">NUL)&set f=%c%b%a!h!%e&if "!f!" geq "20140304034534" if "!f!" leq "20150321231232" echo %a/%b/%c %d:%e %f %g %h"
This command is good, but it is not considering the Time. Please let me know how to use AM/PM timings. Is it 24hr or 12Hr.
Is there any way to check the files in subfolders also. I am using *.* but it is not checking the files in subfolders.
@Dave, Sorry for confusion. Initially we were asked to write batch file , later came to know that we will not be having the permissions to save the files in the client location. So we were trying for single line command

Thanks