Page 1 of 1

File Monitor and Variable

Posted: Fri Dec 10, 2010 12:17 pm
by maximelagace
Hi,
I have a task that starts a program when a change is
detected in a directory, using File Monitor. It works
great, however, I would like to set a user variable
containing the files that triggered the change. Then, I
could use this variable to start my program with the
corresponding command line : for example Notepad.exe -
C:\file1.txt,C:\file2.txt.

I know I can log the triggering files using the "Save
Changes" tab in File Monitor, but using a variable would
be a more brilliant way to do it.

Thanks,

Maxime Lagacé

File Monitor and Variable

Posted: Sat Dec 11, 2010 7:31 am
by Oleg
You can process the created list of files in the task in the loop (see Text Loop) or use {TextFile(c:\MyFileder\Myfile.txt)} variable.
Of course you can also assign the text to some user variable.

We'll add direct saving into variable later.