File Loop and task variables

Discuss RoboTask here
Post Reply
Sigurd
Posts: 1
Joined: Tue Jun 15, 2021 4:08 pm

File Loop and task variables

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

Re: File Loop and task variables

Post by Oleg »

assign current filename to variable: {TK1_CURRENTFILE}
You must specify variable name only: TK1_CURRENTFILE (without braces)
Oleg Yershov
Post Reply