File Loop and task variables

Discuss RoboTask here

File Loop and task variables

Postby Sigurd » Wed Jun 16, 2021 11:56 am

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.
Sigurd
 
Posts: 1
Joined: Tue Jun 15, 2021 4:08 pm

Re: File Loop and task variables

Postby Oleg » Thu Jun 17, 2021 8:22 am

assign current filename to variable: {TK1_CURRENTFILE}

You must specify variable name only: TK1_CURRENTFILE (without braces)
Oleg Yershov
Oleg
Site Admin
 
Posts: 2668
Joined: Thu Jan 01, 1970 1:00 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 5 guests