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.
2 posts Page 1 of 1

DataProcessor

Posts: 1
Joined: Fri Jan 31, 2014 3:27 pm

Post by 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.

Support_Rick

Support Specialist
Posts: 590
Joined: Tue Jul 17, 2012 2:12 pm
Location: Phoenix, AZ

Post by 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">
		<dateFilter>
			<include from="${Today}" />
		</dateFilter>
	</fileset>
</createFileList>
Rick Elliott
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696
2 posts Page 1 of 1