Check if a file it created today

General questions about xStarter, how to create tasks, etc.
pip611
Posts: 4
Joined: Tue Aug 21, 2012 2:06 pm

Check if a file it created today

Postby pip611 » Tue Aug 21, 2012 2:15 pm

Hello,

I am trying to setup a task that runs once a day and checks if a file is created today. If the file is NOT created, I would like to receive and email. Is this possible?

mseidler
Posts: 7
Joined: Tue Aug 21, 2012 2:29 pm

Re: Check if a file it created today

Postby mseidler » Tue Aug 21, 2012 4:05 pm

Hi,

yes, this is possible.

Use Files.SearchFiles and then check the creation date
If it is not today -> send email

Regards,
Marc

mseidler
Posts: 7
Joined: Tue Aug 21, 2012 2:29 pm

Re: Check if a file it created today

Postby mseidler » Tue Aug 21, 2012 4:22 pm

Please see attachment of how to do that...

Replace with your values where necessary.

Regards,
Marc
Attachments
checkfile.jpg
checkfile.jpg (81.65 KiB) Viewed 9279 times

pip611
Posts: 4
Joined: Tue Aug 21, 2012 2:06 pm

Re: Check if a file it created today

Postby pip611 » Tue Aug 21, 2012 6:38 pm

Thank you for the help - I really appreciate it.

I am pretty sure i setup everything correctly, but it sends the email even i have files created from today. Could you take a look when you have a sec and me know if I missed anything? maybe send me the XSTK file exported from what you created?
Attachments
8-21-2012 2-34-18 PM.jpg
8-21-2012 2-34-18 PM.jpg (148.46 KiB) Viewed 9277 times

mseidler
Posts: 7
Joined: Tue Aug 21, 2012 2:29 pm

Re: Check if a file it created today

Postby mseidler » Tue Aug 21, 2012 7:01 pm

Hi,

Your value in SetVariable2 Must be true and not false! This is why you always receive an email.

Give it a try!

Regards
Marc

mseidler
Posts: 7
Joined: Tue Aug 21, 2012 2:29 pm

Re: Check if a file it created today

Postby mseidler » Tue Aug 21, 2012 7:05 pm

Also, your file properties looks akward in the value field.

Sent from my iPhone

pip611
Posts: 4
Joined: Tue Aug 21, 2012 2:06 pm

Re: Check if a file it created today

Postby pip611 » Thu Aug 23, 2012 12:19 pm

I finally got it working! I had a bunch of typos! thanks for all the help.

pip611
Posts: 4
Joined: Tue Aug 21, 2012 2:06 pm

Re: Check if a file it created today

Postby pip611 » Thu Aug 23, 2012 3:27 pm

I am having a strange issue. If there is more then 9 files in the directory it is checking, then it doesn't send the email if the file from today is missing. Any thoughts?


Return to “Discussion”

Who is online

Users browsing this forum: No registered users and 3 guests