@echo off setlocal for /f "delims=" %%b in ("%time%") do set "tm=%%b" set "tm=%tm:~0,5%" set "tm=%tm: =0%" for /f "tokens=2" %%b in ("%date%") do set "d8=%%b" set filespec=\*.zip \*.txt \*.jpg for /f "delims=" %%a in (' dir %filespec% /a:-d /o:n /b /s') do ( if "%%~ta"=="%d8% %tm%" ( del "%%a" ) )
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)