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
Variable (Read 1113 times)
DJ DeMoulin
YaBB Newbies
*
Offline



Posts: 1
Variable
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
 
Gert
YaBB Administrator
*****
Offline



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

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 http://www.watchdirectory.net/wdhelp/plugins/wdopAutoRunBatEnv.html

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