Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


stevja01
2012-08-03T15:17:57Z
I need a way to remove files after a certain period of time using the file create date/time. We are on version 4 of VisualCron and I don't see a way to do that. So ideally I need a way to identify a specific folder and file mask and say that when the file create date/time is older than 6 weeks delete the files.
Sponsor
Forum information
Support
2012-08-03T15:22:49Z
Unfortunately, version 4 does not have the file filter. Upgrading to version 6 is just $67 per server and then you get upgrades for a full year.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
ErikC
2012-08-22T06:33:13Z
Hi Stevja01,

Yes you could use version 6 to do this. I think this is a good step, you get a lot more in return. 😁


In the past I used a script to do this for me in version 4:

forfiles /p {directory2look4files}  /d -{deleteAfterXdays} /m {searchPattern} /c "cmd /c del @path" 


An example is:

forfiles /p c:\windows\temp /d -14 /m *.tmp /c "cmd /c del @path"

This will delete all *.tmp files in dir c:\windows\temp older than 14 days.
If you use the /s also all the subdirectories are checked.

If you use the execute task you should be able to implement this.

Regards,
Erik
Uses Visualcron since 2006.
Scroll to Top