12-24-2022, 05:12 PM
Hi,
I'm writing some small tool handling files or folders. It should be able to accept wildcards.
And I programmed a -R argument to recurse.
The thing I'm struggling on is that f.e. an argument as "test*.*" is returned in COMMAND$ als separate files that are matching.
Is it possible to get this argument just as test*.* instead of many arguments? Especiallly when combing this with recursing, this behaviour makes it difficult to handle it so for a user it feels logically.
I'm writing some small tool handling files or folders. It should be able to accept wildcards.
And I programmed a -R argument to recurse.
The thing I'm struggling on is that f.e. an argument as "test*.*" is returned in COMMAND$ als separate files that are matching.
Is it possible to get this argument just as test*.* instead of many arguments? Especiallly when combing this with recursing, this behaviour makes it difficult to handle it so for a user it feels logically.