Using the "#" character as part of a file filter - VisualCron - Forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


Rcoyle
9 years ago


I have CopyFiles task where I need to use a file filter that includes the "#" character.

I am trying to create a file filter to select files that start with the name "P#EFT*"

It seems that VisualCron does not work with the "#" as part of a file filter.

Is there a way I can make this work?

Thank you in advance.





Sponsor
Forum information
ErikC
9 years ago
Hi,

I'm not sure why the '#' doesn't work in a file mask, but what you can do to make it work is to check the regular expression checkbox.
The regular expression P#EFT should do the trick for you.

Regards
Erik
Uses Visualcron since 2006.
Support
9 years ago
We use a Like comparison of file name. Since # is a special wild card meaning one digit you need to, if you want to look for # character, "escape" it with brackets like [#].

So it would look like something like this: P[#]FT

https://msdn.microsoft.c...us/library/swf8kaxw.aspx 
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top