File Monitor and Variable

Discuss RoboTask here
Post Reply
maximelagace
Posts: 8
Joined: Fri Dec 10, 2010 8:02 am
Location: Canada

File Monitor and Variable

Post 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é
Oleg
Site Admin
Posts: 3202
Joined: Thu Jan 01, 1970 1:00 am
Contact:

File Monitor and Variable

Post 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.
Post Reply