Код:

@echo off
set "d1=C:\papka"
set "d2=C:\out"
set mt=%time%
set dt=-5
if not exist "%d2%" md "%d2%"
for /f "tokens=1-2 delims=:" %%a in ("%mt: =0%") do set/a "t=(1%%a-100)*60+(1%%b-100)+(dt %% 1440)","t+=(t>>31)&1440","hh=(t/60 %% 24)+100","mm=(t %% 60)+100"
for /f "tokens=2-4* delims=: " %%a in ('dir /a-d/od/tc "%d1%\*.txt"^|findstr /rc:"^[^ ]"') do if %%a%%b leq %hh:~-2%%mm:~-2% >nul copy "%d1%\%%d" "%d2%"
pause