WatchDirectory Forum
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl
watchDirectory forums >> How to... >> Full path of modified file
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl?num=1090864260

Message started by markklass on Jul 27th, 2004 at 1:51am

Title: Full path of modified file
Post by markklass on Jul 27th, 2004 at 1:51am
How can I show the full path of modified file in an email?

Title: Re: Full path of modified file
Post by Gert on Jul 27th, 2004 at 2:25am
Hello,

If you use the WDAutoEmail.bat example and want the full path as the subject, find the lines inside the .bat file that reads:

Code (]SET SUB="A new file is created: %WD_FILE_N%"
[/code):


(it is there several times for different events, like FILENEW, FILEDEL etcetera).

Change %WD_FILE_N% to %WD_FILE%, so the above becomes:
[code]SET SUB="A new file is created: %WD_FILE%"

Please make sure the "quotes" stay around the full string.

You can find other examples of environment variables you can use here: http://www.gdps.dk/products/watchDir/help/bat.html#howenv

Hope that helps,
Gert

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