Is it possible to find the newest textfile in a directory and then dump that to the FB log?
Hi Roland,
Some of that is easy, and some is more difficult. The hard bit is to find the newest text file - for this you’ll have to write some VBScript or JScript, and then set a variable with the name of the file. Then, to read the text file use the “Read Text File” action (putting the contents into a variable, eg. %MyFileContents%), and then in the AfterAction script of that action, just send the contents of that variable to the log, eg. Action.SendLogMessage(MyFileContents) - note that in script you don’t enclose variables with %'s.
hth.
.t8
Ok, thanks for the answer. I will try that.
/Roland