I am doing a command line app that needs to read some files and do some processing.
There can be many file arguments on the command line, and each of these can be in one of the following formats:
- Relative path, with or without wildcards.
- Complete path, with or without wildcards.
Network shares should be supported.
What is the easiest way to get a collection of all the files matching the command line arguments ?
Examples of command lines that should be supported:
tool.exe myfile.dat
tool.exe myfile.*
tool.exe ..\..\*.*
tool.exe C:\Temp\test.*
tool.exe \\server\share\*.dat
Is there nothing built-in in the framework to do this ?