I need to search a file on my disk modified after a given date using the command line.
For example:
dir /S /B WHERE modified date > 12/07/2013
I had the same problem, so I created a list using XCOPY and the modified-by date I was looking for, used a for
loop to traverse the list, and added the date/time information I needed for each file to a log:
xcopy X:\file_*.log X:\temp /D:07-17-2014 /L /Y > X:\files.txt
for /f "tokens=* delims=" %%a in (X:\files.txt ) do (
@echo %%~ta %%a >> X:\files.log
)
It resulted in something like the following, which is exactly what I wanted.
X:\>()
07/17/2014 09:41 AM X:\file_201407170600.log
X:\>()
07/17/2014 09:41 AM X:\file_201407170615.log
X:\>()
07/17/2014 09:23 AM X:\file_201407170630.log