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.


Eddie Cardwell
2023-05-16T14:53:16Z
I would like to set up a job that checks a directory every morning at 5 am. If the file exists with todays creation date, do nothing. If the file does not exist or is from a previous day, I need to send out an email.

Right now I have a long way of doing this (check if file exists, check the create date was today, copy file, if copy fails send email).

Is there a more direct way to accomplish this? The file name will ALWAYS be the same.
Sponsor
Forum information
bweston
2023-05-16T17:57:22Z
What about:

List Files task, that location, that filename, created date greater than
{DATENOWADD(Days|0|yyyy-MM-dd)}


Task Flow: On success, if other value
{TASK(Active|Result.NoListedFiles)}
int32 equal 0, run notification "send the email"

or if you need sending the email to be a task rather than a notification, then you could instead have that be the next task, and stop the job if the number of listed files is NOT zero
Scroll to Top