Community forum

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


brian lee 1982
2014-01-29T06:58:43Z
Hi,

Has anyone try to delete files that has time criteria as well?

Coz I have to delete file that is based on created date, that is older than yesterday's 8pm.

i only able to do the date part : {DATENOWADD(Days|-1|dd/MM/yyyy HH:mm)}

i tried changing that HH:mm to 20:00 but not successful to delete the yesterday's file created at 19:59 or 19:00 in the test samples (only 2 file samples).
Sponsor
Forum information
Support
2014-01-29T09:01:57Z
We cannot reproduce this. Please be sure when you open properties of that file that you really look at Created and not Modified.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
brian lee 1982
2014-01-29T12:09:45Z
I am trying to do this:

1. Delete files that is of yesterday's before 8pm based on the created datetime.

Thus i came to the variable part where

Delete files
If created date < {DATENOWADD(Days|-1|dd/MM/yyyy HH:mm)}

How do I changed that so that it can suit my case? Thx for replying.
DLenkich
2014-01-29T15:10:57Z
I'd have thought changing HH:mm to 20:00 should have worked.

I have a similar issue with Date filters (see thread 7.1.0 Email Attachment Filters not working ).

Using the test function - if you set it to delete files older than a specific date does the test function list all files??
(not wishing to hijack your thread but just wondering if it's the same issue)

Thanks,

Don
Support
2014-01-29T15:25:46Z
Yes, you can mix values in date like this:

{DATEFORMAT(yyyy-MM-dd 08:00)}

Please note that this is my regional format. You need to use your format which is probably the one you supplied:

{DATENOWADD(Days|-1|dd/MM/yyyy 08:00)}
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
brian lee 1982
2014-01-29T15:45:56Z
Originally Posted by: DLenkich 

I'd have thought changing HH:mm to 20:00 should have worked.

I have a similar issue with Date filters (see thread 7.1.0 Email Attachment Filters not working ).

Using the test function - if you set it to delete files older than a specific date does the test function list all files??
(not wishing to hijack your thread but just wondering if it's the same issue)

Thanks,

Don




I'd tried with {DATENOWADD(Days|-1|dd/MM/yyyy 20:00)} , but it just won't work. The same thing happen with you too?
the test function only delete certain type of files in a folder.
Support
2014-01-29T17:45:19Z
There is a way of debugging this more. Turn on Extended debugging in server settings. Then run the Task again. In the log_serverDATE.txt there should be some intersting information where all file dates and in-date is compared.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
brian lee 1982
2014-02-03T08:16:57Z
My intention is to delete file from a folder if they are created from the previous day created before 8pm. My job will run at 7pm everyday.

However, I do realise that with my setting to {DATENOWADD(Days|-1|dd/MM/yyyy 20:00)}
and manually run the job, say at 4pm, files created 4pm yesterday are deleted. Files created at 5pm are left alone.

Seems like it implies "24 hours" earlier which might not be the case for me.
Support
2014-02-03T08:32:59Z
Please debug it as describe in the previous post.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top