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
-
- Posts: 8
- Joined: Fri Dec 10, 2010 8:02 am
- Location: Canada
File Monitor and Variable
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.
Of course you can also assign the text to some user variable.
We'll add direct saving into variable later.