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


olivieryou
2011-07-05T07:20:14Z
Hi,

I try to do a Condition file_exist on a task.

I need to do a check everyday on a specific file "filename_{day-1).csv"
Do you know how to parameter the filename in VisualCron.

I already tried this : filename_{YYYYMMDD-1NOWE}.csv [img]null[/img]

Is the date format is wrong ?


(PS : -1NOWE : to exclued WeekEnd)

Thanks in Advance
Sponsor
Forum information
ErikC
2011-07-05T08:55:22Z
Hi olivieryou, welcome to the forum!

You have to use this variable:

{DATENOWADD(Days|-1|yyyyMMdd)}

so it will be: filename_{DATENOWADD(Days|-1|yyyyMMdd)}.csv


For skipping the weekends, you can use:

{DATE(LastWorkday|yyyyMMdd)}

Regards,
Erik
Uses Visualcron since 2006.
olivieryou
2011-07-05T09:02:56Z
Hi Erik,

Thanks for your help,

Indeed, it's better !! and i found the button "Variable" i also foud another varaible "LastWorkDay" to exclued weekends :)

Thank you.
Scroll to Top