How to find all files created between 17:00 and 17:25 in one day?
@echo off
set /p d=Please enter the full path:
set /p start_time=Please enter the start time of the file creation:
set /p end_time=Please enter the end time of the file creation:
for /f "tokens=3,*" %%i in ('dir /a-d/od/t:C "%d%" ^| findstr /b /c:"%start_time%" /c:"%end_time%"') do (echo %%j>>d:\22.txt)
pause
I know this part. I don't know how to find within a certain time range. Can anyone help me modify it?
@echo off
set /p d=Please enter the full path:
set /p start_time=Please enter the start time of the file creation:
set /p end_time=Please enter the end time of the file creation:
for /f "tokens=3,*" %%i in ('dir /a-d/od/t:C "%d%" ^| findstr /b /c:"%start_time%" /c:"%end_time%"') do (echo %%j>>d:\22.txt)
pause
I know this part. I don't know how to find within a certain time range. Can anyone help me modify it?
