WatchDirectory home page
WatchDirectory Startseite (Deutsche Version)
Site WatchDirectory (Français)
  Welcome, Guest. Please Login or Register
YaBB - Yet another Bulletin Board
Page Index Toggle Pages: 1
Variable (Read 1142 times)
DJ DeMoulin
YaBB Newbies

Posts: 1
May 1st, 2014 at 11:26pm
I am a new watchDirectory user, so I apologize if I am asking a question that has already been answered.  I search through the forums but was unable to find an answer:

1.  Is the an environment variable which returns the length (number of lines) of a file?
2.  Is it possible to do a calculation on a variable from with a watchDirectory task?

I have a task which monitors a directory for a .csv file and sends and e-mail with some information.  I would like to be able to include the number of lines in the file in that e-mail.  Actually, as the file always contains a header line, I would like to be able to say the file contains (NumberOfLines - 1) lines.  Any assistance would be appreciated.  DJD
Back to top
IP Logged
YaBB Administrator

Posts: 2260
The Netherlands
Re: Variable
Reply #1 - May 2nd, 2014 at 6:58am

I am sorry, but that information is not available to the email task. The closest are the %WD_FILE_SIZE% and %WD_FILE_SIZE_KB% variables, see

Back to top

Gert Rijs - gert (at) gdpsoftware (dot) com
End Alzheimer's:
WWW WWW GdPSoftware  
IP Logged
Page Index Toggle Pages: 1