Page 1 of 1

Create Monitor to watch for filename yyyymmdd.csv

Posted: Tue Oct 20, 2015 10:35 am
by dglaser
I am trying to create my first Monitor using GoAnywhere Director 4.6.1. I would like to monitor a directory for the filename yyyymmdd.csv using today's date. When I enter ${CurrentDate('MMddyyyy')}.csv as my File Name Pattern, it does not recognize this as a variable. How can I get this to monitor for this file name and then launch a project when found?

Thanks,
Drew

Re: Create Monitor to watch for filename yyyymmdd.csv

Posted: Tue Oct 20, 2015 11:10 am
by Support_Rick
Drew,

The monitor is designed to look for generic file patterns. The variables defined inside of your Project Workflows do not work inside the Monitor file patterns.

To accommodate this, you would monitor for something like "*.csv". Have this kick off your project passing it the files it finds. Then, you could loop through the files found and select the ones that contain "${CurrentDate('MMddyyyy')}" in the file name... ignoring the others.