WatchDirectory home page
WatchDirectory Startseite (Deutsche Version)
Site WatchDirectory (Français)
  Welcome, Guest. Please Login or Register
YaBB - Yet another Bulletin Board
   
  HomeHelpSearchLoginRegister  
 
Page Index Toggle Pages: 1
Wildcards - matching pattern fails (Read 580 times)
IPA
YaBB Newbies
*
Offline



Posts: 8
Wildcards - matching pattern fails
Jan 29th, 2017 at 4:28am
 
What are the restrictions and rules for filename matching patterns with wildcards?  *.* and *.txt work fine however the following fails
05837_6237122_*.TXT
Why does this fail?

Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2225
The Netherlands
Re: Wildcards - matching pattern fails
Reply #1 - Jan 29th, 2017 at 10:55am
 
Are you matching against the correct "part" of the file name?
For example, when C:\Monitor\05837_6237122_abc.txt is detected
File Name will be 05837_6237122_abc.txt
File Title will be 05837_6237122_abc
Complete Path will be C:\Monitor\05837_6237122_abc.txt

If you match against the complete path, your *.* obviously matches.
*.txt will also match (* will "consume" C:\Monitor\05837_6237122_abc)

Your 05837_6237122_*.TXT will NOT match because
C:\Monitor\05837_6237122_abc.txt does not start with 0583.....

See http://www.watchdirectory.net/wdhelp/help/edit_filter.html
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
IPA
YaBB Newbies
*
Offline



Posts: 8
Re: Wildcards - matching pattern fails
Reply #2 - Jan 30th, 2017 at 4:04pm
 
Thank you, that was very helpful for the file name masking at the job level.  However, my job has multiple sub-tasks.  The job will run, but the sub-task (according to the task history in debug mode) do not match the mask.  I have looked for typos and the typical user mistakes.
Back to top
 
 
IP Logged
 
IPA
YaBB Newbies
*
Offline



Posts: 8
Re: Wildcards - matching pattern fails
Reply #3 - Jan 30th, 2017 at 5:17pm
 
Please see the attached screenshots for reference.
Back to top
 

WatchDir1.PNG (12 KB | 46 )
WatchDir1.PNG
WatchDir2.PNG (12 KB | 44 )
WatchDir2.PNG
WatchDir3.PNG (5 KB | 45 )
WatchDir3.PNG
 
IP Logged
 
IPA
YaBB Newbies
*
Offline



Posts: 8
Re: Wildcards - matching pattern fails
Reply #4 - Jan 30th, 2017 at 10:06pm
 
The last piece of the puzzle is the software requires the full path as a part of the mask.  This should be resolved now.
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2225
The Netherlands
Re: Wildcards - matching pattern fails
Reply #5 - Jan 31st, 2017 at 7:47am
 
Correct, we should make that more obvious.
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
Page Index Toggle Pages: 1