The $Choice Variable is actually an Array of Strings; the first "","app1.exe .... was just to be in line with app numbers (first element is 0)

Yeah .... I must admit that this is not a good way to code your specific example in ANY way !

It was just to show how UDFs can be your friend in shortening, make it re-usable, make more reliable , ... your code [Roll Eyes]

Sorry for the last minute version of dumb UDF example [Frown]
_________________________