Need help in creating a loop in a legacy system

Hi Guys,

I am in need of some help in creating a loop for a legacy system where the bot will need to pick up the file number run the process that needs to be looped then pick the next file number until there are no more file numbers left.

Being an old system the selectors are static as dynamic selectors weren’t around at the time. Ive left a screen shot of the screen and list that needs to be looped below.

the system is a web based system.

appreciate any help

thank you