Checking a file create date

Post any question you may have in regards to GoAnywhere Director and let our talented support staff and other users assist you.

Checking a file create date

Postby DataProcessor » Fri Jan 31, 2014 3:45 pm

I need to create a Goanywhere Monitor or a project that can check if the file create-date is the current system date. The Monitor that I created just executes a project and sends me an email but I wasn't able to get it to check if the file create date is current. Any suggestions would be appreciated. I just need to check if the file in a particular folder is current.
Posts: 1
Joined: Fri Jan 31, 2014 3:27 pm

Re: Checking a file create date

Postby Support_Rick » Mon Feb 03, 2014 9:01 am

Inside the project that you are calling from your Monitor, you will need 2 separate tasks.

1- SetVariable Task: Use this to create a variable and assign the value as ${ CurrentDate }
2- CreateFileList Task: Use this with the "FileSet | DateFilter | Include" elements/attributes

It should look something like this:

Code: Select all
<setVariable label="Get Today&apos;s Date" name="Today" value="${ CurrentDate }" version="2.0" />

<createFileList label="Get list of Files" fileListVariable="MyList" version="1.0">
   <fileset dir="C:\Temp">
         <include from="${Today}" />
Rick Elliott
Sr. Product Specialist
(402) 944.4242
(800) 949-4696
Support Specialist
Posts: 392
Joined: Tue Jul 17, 2012 2:12 pm

Return to Community Forum

Who is online

Users browsing this forum: No registered users and 1 guest