Hello @rAE_rAS,
As peter expalined
Assign the below code to the String[ ] variable
Let no = System.Text.RegularExpressions.Regex.Match(fi.Name,"\d+").Value
Order By CInt(no) Descending
Select fi.FullName).toArray
Assign the below code to the Int32 variable
CINT(System.Text.RegularExpressions.Regex.Match(Path.GetFileNameWithoutExtension(numberArray(0)),"\d+").Value)

You will get the required result.
Thanks,
Sanjit
