WatchDirectory Forum
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl
watchDirectory forums >> Plugins >> Send email
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl?num=1252515682

Message started by syco1us on Sep 9th, 2009 at 7:01pm

Title: Send email
Post by syco1us on Sep 9th, 2009 at 7:01pm
I am using Watch Directory to monitor folders for events and them an email is sent out stating that something was posted to that folder.  Using $FN$ or %WD_FILE_SHORTPATH% I get a file name that comes up as \\(servername)-sysaid\SecureFTP\(filename)\Reports\2C02B2~1.PDF is there any way to shorten this file name down to exclude the server name?


Thank you in advance for your help.


I figured out what I was trying to do I added  %WD_RELDIR% to just give me the file name and the name of the doc posted.

Title: Re: Send email
Post by Gert on Sep 10th, 2009 at 9:30am
Yes, I guess you need something like this
[code]%WD_RELDIR%\%WD_FILE_N%[/code]

You can use all variables listed here
http://www.watchdirectory.net/wdhelp/plugins/wdopAutoRunBatEnv.html

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