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
Full path of modified file (Read 2603 times)
markklass
YaBB Newbies
*
Offline



Posts: 10
Full path of modified file
Jul 27th, 2004 at 1:51am
 
How can I show the full path of modified file in an email?
Back to top
 
tendayrain1  
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2239
The Netherlands
Re: Full path of modified file
Reply #1 - 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%"
 


(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
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