You could use forfiles to enumerate and process files not modified longer than (or since date), for example (as shown on linked MS page - this would simply list them)
forfiles /s /m *.* /d -365 /c "cmd /c echo @file is at least one year old."
After you've verified it works as you'd want it to, put it in a batch file and schedule using Task Scheduler (or use schtasks
if you prefer command line).
[Edit]
If creation date (not modification) date is required, I would resort to powershell:
This one liner gets and prints all files created earlier that 365 days.
Please note it does not strip times from dates (so comparison takes not only date, but also time of creation and time when it runs)!
powershell -command "gci |? {$_.CreationTime -lt (get-date).addDays(-365)} |% {write $_}"
To delete instead of list, replace write
with del
To strip time from dates, use (get-date).date
You may also want to exclude folders from processing
Using a cronjob or a scheduled task (in the Windows world) would solve the problem without being dependent on any starts or logins. Is a single file age for automatic deletion for the whole folder sufficient for you? – pabouk – 2014-02-01T11:07:53.460
@pabouk Sure,as long as it is created date,that is,the date when I move it in the respective folder.I`m running now wmz solution,and it works only that it takes into account the modified date. – Mihai – 2014-02-01T11:10:50.487