Page 1 of 1

File Loop and task variables

Posted: Wed Jun 16, 2021 11:56 am
by Sigurd
I want to delele files. Therefore I create a task with actions:

1) Loop file
search for files: D:\AdvanTex\Data\Temp\Gebinde-Etiketten\*.pdf
assign current filename to variable: {TK1_CURRENTFILE}
The variable was put by using the {V} button and selecting the variable created before.

2) Delete file
Files: {TK1_CURRENTFILE}

3) End Loop

If I run the task, I get the following message for each file found:
W: 15.06.2021 16:50:53: Illegal name of variable ()

Any idea what I did wrong?

Thanks in advance for any help.

Re: File Loop and task variables

Posted: Thu Jun 17, 2021 8:22 am
by Oleg
assign current filename to variable: {TK1_CURRENTFILE}
You must specify variable name only: TK1_CURRENTFILE (without braces)