Is anyone willing to submit code or link to code, or discuss logic that can predict the resulting file name when a command using copy file can be used with all variations of wildcard and character combinations.
I am talking about a destination expresion that is not as simple as *.* or *.odb, etc...
For example the program might receive:
lcSource = "*.*"
lcDest = "P*.T*"
COPY FILE (lcSource) TO (lcDest)
OR
lcSource = "*.D??"
lcDest = "??V?*.?F?"
COPY FILE (lcSource) TO (lcDest)
OR
WHATEVER
I know I can do ADIR to obtain a list of files from the source. What would be the best way to predict the resulting file names for the specified destination expression.
Any positive comment will be appreciated