WatchDirectory Forum
watchDirectory forums >> How to... >> Variable

Message started by DJ DeMoulin on May 1st, 2014 at 11:26pm

Title: Variable
Post by DJ DeMoulin on 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

Title: Re: Variable
Post by Gert on 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

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