Hi to all,
I have a “trivial problem”,
but with strings and regexes they are very weak.
Explanation:
There is a folder containing several .xlsx files.
Not all .xlsx files have to be considered by the bot,
but only those that contain the words: “Credit_mngt_affidati_”
(the full name is: Credit_mngt_affidati_2021.xlsx, or the current one
Credit_mngt_released_2022.xlsx)
The bot has to perform operations on these two files,
and at the end of processing, it must create an output for each processed file, therefore,
in addition to considering only the “Credit_mngt_released_” files
it will also have to take the full name to use in the Output string.
(ex: Output_Credit_mngt_affidati_2021.xlsx
, or Output_Credit_mngt_released_2022.xlsx)
One more error message.
In addition to inserting the IF into the loop,
I still need to collect the file name as well.
(with or without extension, this is indifferent).
Hi @AaronMark
You are passing the Source here what you need to pass is arrfiles in the value
Where item.tostring will get you the path for getting name you need to use this expression and assign in variable and then concatenate with the output file name Path.GetFileNameWithoutExtension(item.ToString)
It was an element that I had not considered,
although I wrote it, but, I never had to change the Type Argument and … nothing … I really didn’t think there was a supplementary setting.
Sorry!! …and Thanks!!
Really…