Setting up a trigger looking for a file in a subfolder *please help* - VisualCron - Forum

Community forum

trevinom
2012-06-07T15:09:05Z
I am trying to set up a trigger to look for files with a ".pgp" extension.
The kicker is that the file structure has a high-level qualifier, then a mid-level variable folder name before I can get to the variable file name.
The struction is as follows:

foldera\folderb\01\folderc\triggerfile1.pgp
foldera\folderb\002\folderc\triggerfile2.pgp
foldera\folderb\0003\folderc\triggerfile3.pgp
foldera\folderb\00004\folderc\triggerfile4.pgp


The numeric folder names can be any of 257 files that are 2 to 5 characters long and represent agency names.

Is it possible to set a trigger so that any time a file gets placed into the 'folderc', the task gets triggered?
Everytime I try to set a trigger with a wildcard character, I get an error saying the path has invalid characters.
Support
2012-06-08T14:24:39Z
Not possible right now. But maybe you could add a Condition to exit the Job if the folder result Variable does not contain "folderc". I am moving this topic to Feature requests forum.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
trevinom
2012-06-08T18:44:44Z
I thought of doing that, but the variable length of 'folderc' makes it hard to do it. There are also currently over 1500 agency folders in our production environment.
I set the trigger at 'folderb' and put in a mask of '.pgp' for the file I also checked off the 'process subfolder' option.
I am then writing the trigger info to a file which I am then parsing with a vb.net task.
The vb.net task is checking to see if the first character of 'folderc' is numeric and if so, writing a trigger
file which the rest of the job is looking for before processing the file.

This is not a very elegant way of doing it, but at least it's working. If you can
add the feature to visualcron, I'm sure others would be happy besides myself.
Support
2012-06-09T09:35:38Z
So, what you like to have is wild card support in the middle of folder path?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
trevinom
2012-06-10T07:27:14Z
Yes, that is what I was referring to.
Scroll to Top