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
Watch for a specific file (Read 1971 times)
thuslin
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

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

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
 
Gert
YaBB Administrator
*****
Offline



Posts: 2224
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 http://www.watchdirectory.net/watchDir/help/ignore.html).
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:
Code:
IF /i "%WD_FILE_N%" NEQ "accounts.txt" GOTO :EOF
 


Hope that helps,
Gert

Edited:
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
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
Page Index Toggle Pages: 1