WatchDirectory Forum
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl
watchDirectory forums >> How to... >> Use .bat variable in email
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl?num=1129825336

Message started by BillHouse on Oct 20th, 2005 at 6:22pm

Title: Use .bat variable in email
Post by BillHouse on Oct 20th, 2005 at 6:22pm
Using the Automatically send email notification feature when files show up in a certain directory. Trying to also use the additional variable available in the bat file pluging to tell me the file size in KB. Can't seem to get it to work.

Below is what is in the body of my e-mail:

There is a new file on pcname called: $FN$, %WD_FILE_SIZE_KB%
$DT$ $TM$

Title: Re: Use .bat variable in email
Post by Gert on Oct 21st, 2005 at 8:33am
Thanks for the report, I am able to reproduce it (wd_file_size, wd_file_size_kb, wd_shortpath and wd_shortname seem to be affected).
I'll look into it, and probably have a fix available next week (monday).

Gert

Title: Re: Use .bat variable in email
Post by Gert on Oct 23rd, 2005 at 5:42pm
This is fixed in today's 4.0.37 release.

It was caused because WD was looking for WD_FIlE_SIZE (note the lowercase L).

Gert

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