Searching path for multiple versions
I've read the functions for replacing, and appending values to a path env variable.
I want to check for all possible versions supported in an evn variable. e.g. if checking gs for all versions, i'd like to look for something like C:\Program Files\gs\* in the env value, and then, delete any found prior to appending the new version.
If anyone can give me some pointers on doing this, that would be great!