Hi @Atlantis1 ,
Regarding your question - i have difficult to understand the defination of %TextList[2]%-%TextList[3]% in your flow. Can you clarify a little more.
- TextList is an array variable returned after using split
- Because arrays start with index 0, to access the 3rd element of the array you write %TextList[2]%
- to access the 4th element of the array you write %TextList[3]%
- So this (%TextList[2]%-%TextList[3]%) is written to add a hyphen between those two values as you wanted.
- Refer below image for above points
This is how Array TextList looks like after running the process

Secondly, Manually "set variable" was just to demonstrate.
You have to read the folder names in a loop using the inbuilt action in PAD.
@MichaelAnnis has shared a Pseudo logic. Please take a look.