delete files older than 5 minutes

From: Thomas Zahn (Thomas...)

Hi,

this script deletes all files, which are older than 42 days.
I do not komplete understand the script, but could it be modified,
though that all files older than 5 _minutes_ are deleted.

thanks

Thomas Guido

setlocal
Dir Z:\*.* /B /O:-D /T:C > c:\temp\file.txt
For /f "skip=42 delims=/" %%a in (c:\temp\file.txt)do del "Z:\%%a" /f
/q
Endlocal

Share |