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
WatchDirectory v4.9.1 beta (Read 3763 times)
Gert
YaBB Administrator
*****
Offline



Posts: 2355
The Netherlands
WatchDirectory v4.9.1 beta
Apr 18th, 2015 at 10:14am
 
We just uploaded a first beta for WD 4.9.1

New in this release is an improved $CALL$ macro for the email task. Now you can use it to get the recipients for an email as well.

Just install this beta "on top" of your current install so it will see/keep your settings and tasks. Download the beta here:
download link removed, this is now the official release

Example: send half the emails to John, the other half to Eric
There are 2 employees responsible for processing incoming files. The script below will "distribute" the email notifications to John and Eric evenly.

Code:
rem WD_CUREVT contains a unique number assigned to the current event (detected file)
rem when it is an odd number (1, 3, 5, ...) the email should go to John.
rem get the modulo of WD_CUREVT (this will set the MOD variable to 0 or 1).
SET /A MOD=%WD_CUREVT% % 2
IF %MOD% EQU 1 GOTO :john

ECHO eric@example.com > "%WD_RESULTFILE%"
ECHO CC:Help Desk^<support@example.com^> >> "%WD_RESULTFILE%"
GOTO :EOF

:john
ECHO john@example.com > "%WD_RESULTFILE%"
ECHO CC:Help Desk^<support@example.com^> >> "%WD_RESULTFILE%"
 

Back to top
« Last Edit: May 4th, 2015 at 5:02pm 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
 
Gert
YaBB Administrator
*****
Offline



Posts: 2355
The Netherlands
Re: WatchDirectory v4.9.1 beta
Reply #1 - Apr 30th, 2015 at 8:41am
 
The second beta is available, download link in the top post.

This version fixes an issue with the Folder Size task ( http://www.watchdirectory.net/wdhelp/plugins/wdopFolderSize.html ) that, for some settings, ignored the option to also scan subfolders.
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
 
Gert
YaBB Administrator
*****
Offline



Posts: 2355
The Netherlands
Re: WatchDirectory v4.9.1 beta
Reply #2 - May 4th, 2015 at 5:03pm
 
v4.9.1 is now the official release, see http://www.watchdirectory.net/download.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
 
Page Index Toggle Pages: 1