WatchDirectory home page
WatchDirectory Startseite (Deutsche Version)
Site WatchDirectory (Français)
  Welcome, Guest. Please Login or Register
YaBB - Yet another Bulletin Board
Page Index Toggle Pages: 1
Watch for a specific file (Read 2033 times)
YaBB Newbies

I love YaBB 1G - SP1!

Posts: 4
Watch for a specific file
Nov 29th, 2004 at 8:51pm

If I can exclude files by name and extensions using wildcards, why can't I just specify a particular file I'm waiting for in a specific directory? 

I have a series of files that are always delivered to the same place and each file is named the same every day.  It would be very simple and direct to define a Watchdirectory job that looks in folder e:\daily for file accounts.txt. 

From what I see in the help, this is not possible without using scripting extensions. 

Thank you.
Back to top
IP Logged
YaBB Administrator

Posts: 2252
The Netherlands
Re: Watch for a specific file
Reply #1 - Nov 30th, 2004 at 4:19am
The current 3.2 version has some extra possibilities to ignore certain files (see
However, monitoring for just 1 file is not really possible using these .ignore files.

You should add this at the top of your .bat file to ignore all files except accounts.txt:
IF /i "%WD_FILE_N%" NEQ "accounts.txt" GOTO :EOF

Hope that helps,

referenced the wrong web page
Back to top
« Last Edit: Dec 8th, 2004 at 7:01am by Gert »  

Gert Rijs - gert (at) gdpsoftware (dot) com
End Alzheimer's:
WWW WWW GdPSoftware  
IP Logged
Page Index Toggle Pages: 1