I want to make a scheduled process in Windows (specifically, Windows 7) that every 3 hours will delete all the files in all folders older than 24 hours (like the Unix find's -mtime +1
). Basically the Windows equivalent of having this configured in my Unix cron:
find $TRANSITDIR -mtime +1 -exec rm -rf {} \;
Although I seem to have found that the Windows cron equivalent is the scheduler, I just don't know the Windows commands to do that.
Does anyone have a scheduler script ready-to-go?
schtasks.exe
.