I am making a command line application that needs to read some files and do some processing.
The command line can have many file arguments, and each of them can be in one of the following formats:
- Relative path, with or without wildcards.
- Full path, with or without wildcards.
Network resources must be supported.
What is the easiest way to get a collection of all files matching command line arguments?
Examples of supported commands:
tool.exe myfile.dat
tool.exe myfile.*
tool.exe ..\..\*.*
tool.exe C:\Temp\test.*
tool.exe \\server\share\*.dat
Is there a built-in framework built-in infrastructure?
source
share