WatchDirectory Forum
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl
watchDirectory forums >> News >> WatchDirectory v4.9.1 beta
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl?num=1429344892

Message started by Gert on Apr 18th, 2015 at 10:14am

Title: WatchDirectory v4.9.1 beta
Post by Gert on 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%"
[/code]

Title: Re: WatchDirectory v4.9.1 beta
Post by Gert on 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.

Title: Re: WatchDirectory v4.9.1 beta
Post by Gert on May 4th, 2015 at 5:03pm
v4.9.1 is now the official release, see http://www.watchdirectory.net/download.html

WatchDirectory Forum » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2017. All Rights Reserved.